On Mon, Dec 07, 2009 at 01:29:50AM +0900, Masao Uebayashi wrote:
> 
> Hmm.  Is my version incompatible to POSIX?  Or do we go to "write really
> portable shell script" load like Autoconf, not POSIX shell? [1]

It is posix compliant, but falls foul of a common shell bug.

http://www.gnu.org/software/hello/manual/autoconf/Shell-Substitutions.html

Avoid commands that contain unbalanced parentheses in here-documents,
comments, or case statement patterns, as many shells mishandle them.
For example, Bash 3.1, ksh88, pdksh 5.2.14, and Zsh 4.2.6 all
mishandle the following valid command: 

        echo $(case x in x) echo hello;; esac)

        David

-- 
David Laight: da...@l8s.co.uk

Reply via email to