Subj : Re: about to blow a gaske To : Sniper From : Angus Mcleod Date : Fri May 20 2005 07:39 pm Re: Re: about to blow a gaske By: Sniper to Angus Mcleod on Fri May 20 2005 17:24:00 > AM> WTF does 'less > *' do? I'm afraid to even try it! > > I was brave... > > bash: *: ambiguous redirect > > So, its safe. :) Yea -- I built a machine and tried it. I got the same result. The '> *' looks like it should truncate all files. '> filename.ext' truncates the named file, due to a quirk of redirection. I think if '*' were to evaluate to a single filename, that would occur. If you do this: > first.ext second.ext third.ext fourth.ext etcetera.ext then the shell should try to truncate 'first.ext', then execute 'second.ext' with 'third.ext fourth.ext etcetera.ext' as arguments and redirect STDOUT to 'first.ext'. I'm not sure why '*' evaluated to a list of files, doesn't bring about the same result. --- þ Synchronet þ Cry "Softly" then hit hard at The ANJO BBS .