Source-Changes-D archive

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

Re: CVS commit: src/distrib/sets

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.

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 Laight:

Home | Main Index | Thread Index | Old Index