Received:

Chet Ramey chet at cwns1.CWRU.EDU
Sun Sep 9 10:42:35 AEST 1990


Peter da Silva writes:

$ ls()
$ {
$ 	for i
$ 	do
$ 		echo $i
$ 	done
$ }

Useful, that.

cwns1$ unalias ls
cwns1$ ls()
> {
> 	for i
> 	do
> 		echo $i
> 	done
> }
cwns1$ ls /notthere
/notthere
cwns1$ /bin/ls /notthere
/notthere not found

Creative use of `[ -f $i -o -d $i ]' is needed, I think.

Chet
-- 
Chet Ramey				``Levi Stubbs' tears run down
Network Services Group			  his face...''
Case Western Reserve University	
chet at ins.CWRU.Edu		



More information about the Comp.unix.internals mailing list