[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: strange files being created



On Sun, Apr 22, 2001 at 09:54:30AM -0500, Nathan E Norman wrote:
> On Sun, Apr 22, 2001 at 11:02:21AM +0300, Martin Fluch wrote:
> > Hmm, this could be due to some bug in a bash/sh script, when somebody
> > wanted to redirect something to the sdtin (fd=0) and wrote "> 0" instead
> > of ">&0"...
> 
> Could be, except stdin is fd 1, not 0 (this is true in at least bash
> and ash.)


 err, _every_ unix everywhere has the same meanings for file descriptors 0,
1, and 2. (std{in,out,err}, respectively).  The file descriptor numbers are
interpreted by the kernel, so different shells will not do it differently.


-- 
#define X(x,y) x##y
Peter Cordes ;  e-mail: X(peter@llama.nslug. , ns.ca)

"The gods confound the man who first found out how to distinguish the hours!
 Confound him, too, who in this place set up a sundial, to cut and hack
 my day so wretchedly into small pieces!" -- Plautus, 200 BCE



Reply to: