Herbert Xu wrote: > So I still stand by my statement that script writers on Linux cannot > safely rely on this construct. > > As it is, we have two different behaviours, one given by the Korn shell > and another shared by most BSD-derived Bourne shells. I have not seen > any convincing evidence that either is not compliant with respect to > POSIX.
Kevin's analysis seems correct to me. The bash behavior, modulo any (just-corrected) bugs, should reflect that interpretation. I'm not sure how an alternate interpretation can be rationalized. > The behaviour of bash is closer to that of the Korn shell but is > different enough that this construct cannot be reliably used. Maybe, maybe not. It's a bug, and there will eventually be a fixed version of bash released. It's existed since at least bash-2.05b, the earliest version of bash I have handy, so that should give you an idea of how many times it's come up in the last five years or so. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer Live Strong. No day but today. Chet Ramey, ITS, CWRU [EMAIL PROTECTED] http://cnswww.cns.cwru.edu/~chet/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]