On Thu, Nov 01, 2001 at 02:18:48PM +0200, Tommi Virtanen wrote: > > Oh, that still fails the second part of the bug report (#115581) > -- smallyes foo bar echoes "foo\nfoo\n..", not "foo bar\nfoo bar\n.." > > Fortunately, that isn't triggered by anything (yet). Do you want to > rely on that? > > In fact, no combination of 1,*,@ and :-, - manages to work perfectly > for all of bash, ash and zsh ;) Assuming install will use ash or bash, > either *-y or @-y seems like a good pick.
zsh is not a POSIX shell. > [tv@tv ~]$ for shell in ash bash zsh; do export shell; $shell -c 'smallyes_xu() { >YES="${*-y}"; while true ; do echo "$YES" ; done; }; ( echo $shell; smallyes_xu |head >-1; smallyes_xu ""|head -1; smallyes_xu foo bar|head -1 )|tr "\012" ":"'; echo; done >;echo > ash:y::foo bar: > bash:y::foo bar: > zsh:::foo bar: This is the right one for your specification. -- Debian GNU/Linux 2.2 is out! ( http://www.debian.org/ ) Email: Herbert Xu ~{PmV>HI~} <[EMAIL PROTECTED]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]