Date: Sun, 05 Mar 2000 20:54:27 -0800 From: Doug Barton <Doug@gorean.org> To: W Gerald Hicks <jhix@mindspring.com> Cc: hackers@FreeBSD.ORG Subject: Re: empty lists in for Message-ID: <38C33A03.A55DEFAF@gorean.org> References: <57223.952177003@axl.ops.uunet.co.za> <20000305093539F.jhix@mindspring.com> <38C2B805.EA899C32@gorean.org> <20000305204115E.jhix@mindspring.com>
next in thread | previous in thread | raw e-mail | index | archive | help
W Gerald Hicks wrote: > Even though it's my preferred shell, I certainly wouldn't say > that Bash is any sort of standard, certainly not in the POSIX > sense. Well, one of Chet's stated goals is to be as POSIX as possible. I agree that letting the standard speak for itself is a better idea, I was just giving a perspective. > Imagine processing a possibly empty list constructed from a > 'make' expansion... Without this behavior one would have to > code a guard of some sort around the 'for' construct. John Polstra already pointed this out, and Bash handles this like you would expect. There is a difference between expanding an empty list and trying to expand a list that isn't there. Doug -- "Welcome to the desert of the real." - Laurence Fishburne as Morpheus, "The Matrix" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?38C33A03.A55DEFAF>