bug-ed
[Top][All Lists]
Advanced

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

Warn when parent directory doesn't exist


From: Dan Jacobson
Subject: Warn when parent directory doesn't exist
Date: Thu, 23 Nov 2023 10:33:29 +0800

Now let's talk about when you are going to make a new file.
Ho hum,
$ ed /tmp/x
/tmp/x: No such file or directory
a
bla
.
wq
4
$

Everything worked fine.

But how about

$ ed /tmp/www/eee/ddd/x
/tmp/www/eee/ddd/x: No such file or directory
a
bla
.
wq
/tmp/www/eee/ddd/x: No such file or directory
?

We got the same initial warning, but we need another initial warning:
"Parent directory doesn't exist."
Otherwise we think we will be able to write when the time comes to do
so, but will be alarmed when we can't.



reply via email to

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