AW: Ash wildcard usability bug

dietmar.schindler at manroland-web.com dietmar.schindler at manroland-web.com
Mon Oct 24 06:20:05 UTC 2016


> Von: Denys Vlasenko
> Gesendet: Montag, 24. Oktober 2016 01:31
> ...
>
> On Tue, Oct 18, 2016 at 4:31 PM, Lauri Kasanen <curaga at operamail.com> wrote:
> > The following fails in ash 1.24.1, probably also in git. Works in bash.
>
> but not in non-interactive bash called as sh!
>
> Interactive bash: works
> Interactive bash called as sh: works
> bash -c 'cat <z*patch': works
> sh -c 'cat <z*patch': does not work!!!
>
> This is illogical.

It may be illogical, but at least it's documented.

www.gnu.org/software/bash/manual/bash.html#Bash-Startup-Files - "When invoked as sh, Bash enters POSIX mode after the startup files are read."

http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_07 - "Pathname expansion shall not be performed on the word by a non-interactive shell; an interactive shell may perform it, but shall do so only when the expansion would result in one word."

--
Best regards,
Dietmar Schindler
________________________________
manroland web systems GmbH -- Managing Director: Alexander Wassermann
Registered Office: Augsburg -- Trade Register: AG Augsburg -- HRB-No.: 26816 -- VAT: DE281389840

Confidentiality note:
This eMail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient, you are hereby notified that any use or dissemination of this communication is strictly prohibited. If you have received this eMail in error, then please delete this eMail.
________________________________


More information about the busybox mailing list