[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #56064] bash + .ONESHELL breaks when .SHELLFLAGS is set
From: |
Paul D. Smith |
Subject: |
[bug #56064] bash + .ONESHELL breaks when .SHELLFLAGS is set |
Date: |
Wed, 3 Apr 2019 08:22:01 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:66.0) Gecko/20100101 Firefox/66.0 |
Follow-up Comment #3, bug #56064 (project make):
I can't say whether that SO-referenced issue still exists or has been fixed,
but your example usages of setting .SHELLFLAGS are all incorrect. They are
all missing the -c option, which you must provide to the shell otherwise it
thinks that the argument you gave is a filename, not a command to run. See
the shell man page.
Consider:
$ /bin/bash -e 'echo hi'
/bin/bash: echo hi: No such file or directory
$ /bin/bash -ec 'echo hi'
hi
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?56064>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/