ksh process substitution - which ksh's support this?
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.
In article <01bced5e$dd619580$02646...@simon.iaccess.com.au>, "Simon Taylor" <si...@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.
|> Simon Taylor (si...@unisolveX.com.auX - remove the "X"s to reply)
|> Unisolve Pty Ltd Melbourne, Australia
Conrad Kimball | Client Server Tech Svcs, Boeing Information & Supt.
c...@bcstec.ca.boeing.com | P.O. Box 24346, MS 7M-HC
(425) 865-6410 | Seattle, WA 98124-0346