The GNU Bourne-Again SHell - Patches: patch #10445, do not interpret scripts with...
You are not allowed to post comments on this tracker with your current authentication level.
patch #10445: do not interpret scripts with valid shebang executable
Submitter: | Ivan Trubach <tie> | ||
Submitted: | Mon 25 Mar 2024 10:04:08 AM UTC | ||
Category: | None | Priority: | 5 - Normal |
Status: | Wont Do | Privacy: | Public |
Assigned to: | None | Open/Closed: | Open |
Tue 26 Mar 2024 01:23:28 PM UTC, comment #3: |
Chet Ramey <chet> |
Mon 25 Mar 2024 09:47:00 PM UTC, comment #2: Thanks for clarifying that. If I understand this correctly, the only way to bypass this behavior is to exec via env or any other equivalent external command?
|
Ivan Trubach <tie> |
Mon 25 Mar 2024 08:50:00 PM UTC, comment #1: POSIX requires the bash behavior:
|
Chet Ramey <chet> |
Mon 25 Mar 2024 10:04:08 AM UTC, original submission:
If a script interperter in hash bang is an executable and executing the
|
Ivan Trubach <tie> |
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follow 2 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2024-03-25 | chet | Status | None | Wont Do | |
2024-03-25 | tie | Attached File | - | Added 0001-do-not-interpret-scripts-with-valid-shebang-executab.patch, #55886 |
Powered by Savane 3.13-bb6a.
Corresponding source code
With the current version, yes.
In the next version, bash will look past the first line when checking whether or not a script file is a binary file. That may help your issue; it may not.