Subject: Re: strange directory after 1.4 upgrade
To: None <netbsd-help@netbsd.org>
From: Geoff Wing <mason@primenet.com.au>
List: netbsd-help
Date: 06/01/1999 05:41:57
Simon Burge <simonb@netbsd.org> typed:
:Geoff Wing wrote:
:> Tab autocompletion vs shells:
:> #include <fcntl.h>
:> main() {
:> int i = 0; char p[16];
:> p[i++] = 4; p[i++] = 13; p[i++] = 253; p[i++] = 255; p[i++] = 127;
:> p[i++] = 129; p[i++] = 130; p[i++] = 12; p[i++] = 8; p[i++] = 9;
:> p[i++] = 13; p[i++] = 10; p[i++] = 11; p[i++] = 32; p[i++] = 0;
:> open(p, O_WRONLY | O_CREAT, 0600);
:> }
:Ick :-) For tsch, typing:
: rm ./^V^D<TAB>
:resulted in rm complaining about "no such file or directory", but
: rm ./^V^D*
:worked. Good example :-)
And some of them think they're "eight bit clean" shells?
% tcsh -fc 'echo $version'
tcsh 6.08.00 (Astron) 1998-10-02 (i386-intel-NetBSD) options 8b,nls,dl,al,rh,color
^^
ksh did expand it correctly and handled the newline/carriage-return/tabs
OK, though I had to manually put quotes around it in the proper spots for
which I had to "guess". So at least one of our shipped shells is sort-of
OK. I guess that half justifies it being in the base set and not moved to
the pkg area.
Oh, I left out csh, though like tcsh, seems only able to complete/expand
on existing prefix. And I left out rc, which I don't have.
Useful options:
* Use zsh (with ``automenu'' option)
* Use ``rm -i *'' (or ``rm -ri *'') and answer appropriately
* Use ``ls -i'' and ``find . -inum ... -exec rm {} \;'' method
We had enough of this topic yet? :-)
Regards,
--
Geoff Wing <gcw@pobox.com> Mobile : (Australia) 0413 431 874
Work URL: http://www.primenet.com.au/ Ego URL: http://pobox.com/~gcw/