Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!usenet.ins.cwru.edu!cwns1!chet From: chet@cwns1.CWRU.EDU (Chet Ramey) Newsgroups: comp.unix.internals Subject: Re: Received: Message-ID: <1990Sep9.004235.11572@usenet.ins.cwru.edu> Date: 9 Sep 90 00:42:35 GMT References: <24418@adm.BRL.MIL> Sender: news@usenet.ins.cwru.edu Reply-To: chet@po.CWRU.Edu Organization: Case Western Reserve Univ. Cleveland, Ohio, (USA) Lines: 34 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@ins.CWRU.Edu