bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: shebang-less script execution not resetting some options


From: L A Walsh
Subject: Re: shebang-less script execution not resetting some options
Date: Tue, 01 Oct 2019 04:14:00 -0700
User-agent: Thunderbird

On 2019/09/30 14:39, Grisha Levit wrote:
> A few of the recently-added shopt options aren't getting reset when
> running a shebang-less script, this should fix it up:
>   
Suppose the shebang-less script is being run by an earlier version
of bash.  Won't the new patch radically change the behavior of of
such programs?

Or, say I'm running a bash from /home/myhome/bin/bash (even though my
normal shell is /bin/bash).  Those options would have to be reset in
the new, child script, no?  So again, how would the difference in
behaviors affect a user?

Does posix define the behavior of a child script with no interp-line?





reply via email to

[Prev in Thread] Current Thread [Next in Thread]