Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #15441 > unrolled thread

Re: shebang-less script execution not resetting some options

Started byL A Walsh <bash@tlinx.org>
First post2019-10-01 04:14 -0700
Last post2019-10-01 04:14 -0700
Articles 1 — 1 participant

Back to article view | Back to gnu.bash.bug

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: shebang-less script execution not resetting some options L A Walsh <bash@tlinx.org> - 2019-10-01 04:14 -0700

#15441 — Re: shebang-less script execution not resetting some options

FromL A Walsh <bash@tlinx.org>
Date2019-10-01 04:14 -0700
SubjectRe: shebang-less script execution not resetting some options
Message-ID<mailman.561.1569928449.2651.bug-bash@gnu.org>
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?


[toc] | [standalone]


Back to top | Article view | gnu.bash.bug


csiph-web