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

Re: PIPI (Parsed Input Process Initiator) -- another silly proposal?



Try this:

$ cat /etc/debian_version 
2.2
$ bash --version
GNU bash, version 2.03.0(1)-release (i386-pc-linux-gnu)
Copyright 1998 Free Software Foundation, Inc.
$ man bash | sed -n '1675,1691p'

   Process Substitution
       Process substitution is supported on systems that  support
       named  pipes  (FIFOs) or the /dev/fd method of naming open
       files.  It takes the form of <(list) or >(list).  The pro­
       cess  list  is run with its input or output connected to a
       FIFO or some file in /dev/fd.  The name of  this  file  is
       passed as an argument to the current command as the result
       of the expansion.  If the >(list) form is used, writing to
       the file will provide input for list.  If the <(list) form
       is used, the file passed as an argument should be read  to
       obtain the output of list.

       When available, process substitution is performed simulta­
       neously with parameter  and  variable  expansion,  command
       substitution, and arithmetic expansion.

$

Regards,
/Karl

-----------------------------------------------------------------------
Karl Hammar                    Aspö Data           karl@kalle.csb.ki.se
Lilla Aspö 2340             +46  173 140 57                    Networks
S-742 94 Östhammar         +46  70 511 97 84                  Computers
Sweden                                                       Consulting
-----------------------------------------------------------------------

From: "Decklin Foster" <decklin@red-bean.com>
Subject: Re: PIPI (Parsed Input Process Initiator) -- another silly proposal?
Date: Wed, 26 Jul 2000 00:06:21 -0400

> Colin Watson writes:
> 
> > I much prefer the process substitution feature of bash(1) (and possibly
> > other shells), where one can do things like:
> > 
> >   $ diff <(sed s/-/./g < file) <(tr - . < file)
> 
> I think it was shamelessly stolen from rc(1) ;-)
> 
> Seriously, though, would someone like to document this? I see no
> mention of it in the REDIRECTION section of the man page, or any
> occurence of the string '<('. AKAICT, bash(1) is not one of those man
> pages GNU is trying to replace with info.
> 
> -- 
> There is no TRUTH. There is no REALITY. There is no CONSISTENCY. There
> are no ABSOLUTE STATEMENTS. I'm very probably wrong. -- BSD fortune(6)
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: