On 2/11/20 4:40 AM, arnold(a)skeeve.com wrote:
Doug McIlroy <doug(a)cs.dartmouth.edu> wrote:
What i
like is the autocorrect feature in v8:
$ cd /usr/blot
/usr/blit
$ pwd
/usr/blit
Here I am, editor of the v8 manual and unaware of the feature.
We now know that silent correction is a terrible idea.
But this isn't *silent* correction. The shell tells you where
it's putting you when it does this, same as in a 'cd' that
happens via $CDPATH.
Admittedly, you have to be paying attention, but Unix has always
demanded that of its users.
The one change I might consider is to disable this feature if the shell
is executing a command list, so something like
cd /usr/bon && rm -f sh*
doesn't do something unexpected before a user has a chance to react.
Does the v9 shell do that?
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet(a)case.edu
http://tiswww.cwru.edu/~chet/