bug-ed
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Warn when parent directory doesn't exist


From: Antonio Diaz Diaz
Subject: Re: Warn when parent directory doesn't exist
Date: Fri, 24 Nov 2023 18:01:34 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14

Paul Jackson wrote:
What about making ed create the missing intermediate directories

Do you mean as in:

     !mkdir -p foo/goo.dir

Yeah - I know - old school geek here - feel free to ignore.

But for less knowledgeable users, making ed automatically create any missing intermediate directories is more convenient. (And I have already implemented it).

Most likely however, if a directory or directory subtree is
missing on a write command, that's a typo in the pathname,
and should error out, not make a new typo-fied path.

Do you mean as the mkdir command above would error out if you mistype the dir? ;-)

You are probably right for your use case. But maybe other people want to use ed to create files in not-yet-existing directories.

BTW, if nobody asks for more features, I'll probably release ed 1.20-pre3 tomorrow.

Antonio.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]