Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
* Re: ksh process substitution - which ksh's support this?
       [not found] <01bced5e$dd619580$026464c0@simon.iaccess.com.au>
@ 1997-11-12  5:00 ` Chet Ramey
  1997-11-13  5:00 ` Conrad E. Kimball
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 4+ messages in thread
From: Chet Ramey @ 1997-11-12  5:00 UTC (permalink / raw)



In article <01bced5e$dd619580$026464c0@simon.iaccess.com.au>,
Simon Taylor <simon@unisolveX.com.auX> wrote:
>I have written some ksh scripts that need to be portable across a number
>of Unixes. 
>
>To my dismay, I have discovered that the process substitution feature
>I have in my SCO "Open Server 5" ksh (and in the GNU bash), is not
>available in the ksh shipped with most of the other Unixes I have 
>access to. 
>
>Is this just because these machines happen to be a few years old, 
>and the newer ksh simply isn't on them, or is process substitution 
>not supported universally?

ksh does not support process substitution on versions of Unix
without the /dev/fd directory.  Bash uses either /dev/fd or
named pipes to implement process substitution, so bash may provide
process substitution on systems where ksh would not.
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer

Chet Ramey, Case Western Reserve University	Internet: chet@po.CWRU.Edu



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ksh process substitution - which ksh's support this?
       [not found] <01bced5e$dd619580$026464c0@simon.iaccess.com.au>
  1997-11-12  5:00 ` ksh process substitution - which ksh's support this? Chet Ramey
@ 1997-11-13  5:00 ` Conrad E. Kimball
  1997-11-14  5:00 ` Finnbarr P. Murphy
  1997-11-18  5:00 ` Pierre Baillargeon
  3 siblings, 0 replies; 4+ messages in thread
From: Conrad E. Kimball @ 1997-11-13  5:00 UTC (permalink / raw)



The Bolsky & Korn book "The KornShell", page 326, under "Possible
Extensions", describes process substitution as being available only
on versions of UNIX that support the /dev/fd directory for naming
open files.  With words like this I would not rely on it being
available for use in a portable script.

  -- Conrad

In article <01bced5e$dd619580$026464c0@simon.iaccess.com.au>, "Simon Taylor" <simon@unisolveX.com.auX> writes:
|> I have written some ksh scripts that need to be portable across a number
|> of Unixes. 
|> 
|> To my dismay, I have discovered that the process substitution feature
|> I have in my SCO "Open Server 5" ksh (and in the GNU bash), is not
|> available in the ksh shipped with most of the other Unixes I have 
|> access to. 
|> 
|> Is this just because these machines happen to be a few years old, 
|> and the newer ksh simply isn't on them, or is process substitution 
|> not supported universally?
|> 
|> It is particularly important for me to discover whether this feature
|> is supported in the latest Digital Unix, as it is not present in v4.0 
|> of the OS.
|> 
|> ie: With a shell that supports process substitution one can, for instance,
|> place a process in the context where a file name is 
|> expected. As a trivial example:
|> 
|>     wc <(ls)
|> 
|> will return the word count of the output of the ls command, as if 
|> the output were a file.
|> 
|> Regards,
|> 
|> -- 
|> Simon Taylor (simon@unisolveX.com.auX - remove the "X"s to reply)
|> Unisolve Pty Ltd         Melbourne, Australia

--
Conrad Kimball           | Client Server Tech Svcs, Boeing Information & Supt.
cek@bcstec.ca.boeing.com | P.O. Box 24346, MS 7M-HC
(425) 865-6410           | Seattle, WA  98124-0346



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ksh process substitution - which ksh's support this?
       [not found] <01bced5e$dd619580$026464c0@simon.iaccess.com.au>
  1997-11-12  5:00 ` ksh process substitution - which ksh's support this? Chet Ramey
  1997-11-13  5:00 ` Conrad E. Kimball
@ 1997-11-14  5:00 ` Finnbarr P. Murphy
  1997-11-18  5:00 ` Pierre Baillargeon
  3 siblings, 0 replies; 4+ messages in thread
From: Finnbarr P. Murphy @ 1997-11-14  5:00 UTC (permalink / raw)






>I have written some ksh scripts that need to be portable across a number
>of Unixes. 
>
>To my dismay, I have discovered that the process substitution feature
>I have in my SCO "Open Server 5" ksh (and in the GNU bash), is not
>available in the ksh shipped with most of the other Unixes I have 
>access to. 
>
>Is this just because these machines happen to be a few years old, 
>and the newer ksh simply isn't on them, or is process substitution 
>not supported universally?
>

Process substitution is not supported on all versions of UNIX. This feature 
is usually only available on versions of the UNIX operating system that 
support the /dev/fd directory for naming open files. 

>It is particularly important for me to discover whether this feature
>is supported in the latest Digital Unix, as it is not present in v4.0 
>of the OS.

Digital UNIX does not support /dev/fd. Neither do a number of other
UNIX operating systems.

  Finnbarr



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ksh process substitution - which ksh's support this?
       [not found] <01bced5e$dd619580$026464c0@simon.iaccess.com.au>
                   ` (2 preceding siblings ...)
  1997-11-14  5:00 ` Finnbarr P. Murphy
@ 1997-11-18  5:00 ` Pierre Baillargeon
  3 siblings, 0 replies; 4+ messages in thread
From: Pierre Baillargeon @ 1997-11-18  5:00 UTC (permalink / raw)





Simon Taylor wrote:
[...]

> To my dismay, I have discovered that the process substitution feature
> I have in my SCO "Open Server 5" ksh (and in the GNU bash), is not
> available in the ksh shipped with most of the other Unixes I have
> access to.

From the man-page of Solaris:

   "This feature is available in SunOS and only on  versions  of the UNIX
operating system that support the /dev/fd directory for naming open files."





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1997-11-18  5:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <01bced5e$dd619580$026464c0@simon.iaccess.com.au>
1997-11-12  5:00 ` ksh process substitution - which ksh's support this? Chet Ramey
1997-11-13  5:00 ` Conrad E. Kimball
1997-11-14  5:00 ` Finnbarr P. Murphy
1997-11-18  5:00 ` Pierre Baillargeon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox