Skip to content

bash "fallback" for bad shebang regression #98

@covener

Description

@covener

It appears that #97 regresses the bash fallback behavior.

Using zot bash 5.3.20251120_162304

$ ls -lt test.sh
t IBM-1047    T=on  -rwxr-xr-x  1 WASTST1 WASUSER 34 Jan  9 09:30 test.sh
$ cat test.sh
#!/bin/xxxxx
echo $BASH_VERSION
$ ./test.sh
-bash: /bin/xxxxx: EDC5129I No such file or directory.

But If I grab an older zot bash as the calling shell the fallback kicks in:

5.3.20250801_121247

./bash_copied_from_5.3.20250801_121247
WASTST1@FLASH108:~ $ ./test.sh
5.3.0(1)-release

We were inadvertently using the fallback with #!/bin/bash and didn't notice until we refreshed our zopen ZFS for a git issue.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions