bug-bash
[Top][All Lists]
Advanced

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

Re: $(case x in x)...


From: Sven Mascheck
Subject: Re: $(case x in x)...
Date: Tue, 3 Jan 2006 19:51:36 +0100
User-agent: Mutt/1.4i

Eric Blake in <mailman.21142.1136240191.20277.bug-bash@gnu.org>:

> several platforms, including Solaris' /bin/sh, still do not
> parse ( in case patterns even today, so it is certainly
> not portable if you don't have access to a POSIX shell.

Even if they parsed it, it wouldn't be portable,
because no traditional Bourne shell knows $().

Interestingly even the traditional Almquist shell on
4BSD didn't parse it, although $() was added already.
(mainly a SVR4 sh clone and not to confuse with its
 current successors.)

(BTW, I liked your idea of testing the examples and collected
some results on http://www.in-ulm.de/~mascheck/various/cmd-subst/)
-- 
[i'm trying the list after having problems with the gateway]




reply via email to

[Prev in Thread] Current Thread [Next in Thread]