On Mon, 3 Feb 2003 20:01:04 -0800
Larry Williams <[EMAIL PROTECTED]> wrote:

> On Monday 03 February 2003 18:08, Todd Slater wrote:
> > I don't know if you mean print to a printer or not, but you can always
> > do"ls directory > .toc", then print .toc. I made .toc a dot file
> > because if you don't and you write it to the same directory you're
> > listing, it will count itself as a file and get listed. Never
> > understood that one.
> 
> It gets counted because the first thing done in the command is to open
> the output.  In this case, a file is opened to receive stdout.  Then the
> ls command is executed.  Since the file exists, it will be included. 
> One way around it is to make it hidden by using a leading dot like you
> mentioned.
<x>

That helps, thanks for the explanation, Larry. I'm just going to keep on
thinking it's magic that it knows to open that file before it does the
other stuff that comes before it. I always assumed it was linear, left to
right, in such a simple sequence.

Todd

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to