** Reply to message from Otto Moerbeek <[EMAIL PROTECTED]> on Wed, 10 Aug
2005 21:18:09 +0200 (CEST)

>I took some time to look into this.  After some head scratching and
>staring at code, I tested this behaviour using both the '88 and '93
>versions the AT&T version of ksh on Solaris.  They both have exactly
>the same behaviour.  So very likely this is not a bug. 
>
>Both the Kornshell book by Bolsky and Korn (i have the edition
>describing the '88 version of ksh) and the Solaris manual pages are
>not very clear on the exact semantics of pattern expansion.  From the
>observed behaviour and the pdksh code it seems that the x(...)
>pathnames expansions are not done if the pattern is a result of an
>earlier expansion, only ?, * and [...] expansions are done in that
>case.
>
>Since in the test program the first step is expansion of $1, only
>basic pathname expansion is on the result of that expansion.

Thanks for taking the time to research this.  It sounds like the sh(1)
manpage should be updated to capture this information.  In my recent
"adventures in shell scripting" I've found a few other glitches in that
page; it may take a little while, but I'll post an intelligible set of
notes here on what I've found.

        Dave

-- 
Dave Anderson
<[EMAIL PROTECTED]>

Reply via email to