Re: Suggestions for rm
This is the 3rd attempt to send this message, as it keeps stalling
at Connecting to smtp.cox.net...
On Fri 24 Jun 2022 at 09:46:38 (-0400), Greg Wooledge wrote:
> As you have observed here, the worst side effect of "su -" is that it
> changes your directory.
Well, that's a relief. I've been using su - since, well, forever.
(At least 1998, according to my Sent Mail files.)
> Whatever you were going to become root to do,
> now you have to find your way *back* to the directory you were in
> previously, before you can do it. In most cases, this is merely an
> annoyance, albeit a severe one (since you're in a whole new shell, you
> can't just use "cd -" or $OLDPWD).
If you have your pwd displayed in your PS1 prompt, this becomes trivial,
of course, …
> In the case of rm, it can lead to the
> actual loss of data, if you forget that you have been moved.
… as well as being a safety feature in its own right when you're
forgetful.
Cheers,
David.
Reply to: