On 2009-03-25 11:11:28 -0700, Bart Schaefer wrote: > On Mar 25, 5:25pm, Peter Stephenson wrote: > } Subject: Re: Bug#517008: alias not expanded with zsh -c > } > } > Yes, at least as far as native zsh mode goes this isn't a bug. > } > } I should also have pointed out that the "emulate sh" doesn't make any > } difference, it only takes effect after the string for -c has already been > } parsed---it's basically the same issue as the alias expansion one itself. > > It's my recollection that the discussion of this on the austin-group list > led to the conclusion that zsh's native behavior in this case is within > the allowed variation in the POSIX spec. Vincent, if you're reading this, > do you disagree, and can you point out why?
Yes, this is allowed: David Korn said that the standard doesn't explain how the shell reads and processes commands. See: https://www.opengroup.org/sophocles/show_mail.tpl?CALLER=show_archive.tpl&source=L&listname=austin-group-l&id=12011 All on this subject: https://www.opengroup.org/sophocles/show_archive.tpl?source=L&listname=austin-group-l&first=1&pagesize=20&searchstring=alias+substitution+--+shells+differ&zone=G -- Vincent Lefèvre <vinc...@vinc17.org> - Web: <http://www.vinc17.org/> 100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/> Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon) -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org