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

Re: using tail in a pipe and script



also sprach Eric G. Miller <egm2@jps.net> [2001.12.29.2350 +0100]:
> C always uses pass by value, C++ can do both.  But, what does that
> have to do with shell scripts and pipes?

C can pass by reference, no?

think about it: i pass by value when i pipe into a program, and i pass
by reference when i tell that same program which file to read. standard
unix filter procedure.

when passed as a pipe, the original data can't be modified.
when passed as a file name, the data can be modified *and* there is
nothing copied (ignoring what the program does)...

-- 
martin;              (greetings from the heart of the sun.)
  \____ echo mailto: !#^."<*>"|tr "<*> mailto:"; net@madduck
  
stay the patient course.
of little worth is your ire.
the network is down.

Attachment: pgpUf1lLVWD4x.pgp
Description: PGP signature


Reply to: