Skip to content

tests: coreutils.sh: ensure utility name is detected at shebang - #217

Open
oech3 wants to merge 1 commit into
coreutils:masterfrom
oech3:patch-5
Open

oech3 wants to merge 1 commit into
coreutils:masterfrom
oech3:patch-5

Conversation

@oech3

@oech3 oech3 commented Mar 12, 2026 •

Copy link
Copy Markdown
Contributor

Closes #215
Check that multi-call binary called as shebang detects it's utility name correctly. It fails when the binary tried to detect the name from AT_EXECFN (path of the script).

The shebang wrapper's name does not have any actual util's name for the case the binary try to match with *utility_name (e.g. uutils).

@oech3
oech3 force-pushed the patch-5 branch 3 times, most recently from 800e38b to 795e158 Compare March 14, 2026 08:17
@pixelb

pixelb commented Mar 27, 2026

Copy link
Copy Markdown
Member

can we have a little more detail in the summary text about what this is testing.

Also it's probably worth checking the system can execute non-readable scripts,
since from memory some NFS setups disallow that, and also some SELinux setups.

Comment thread tests/misc/coreutils.sh Outdated
* tests/misc/coreutils.sh: ensure utility name is detected at shebang
@oech3
oech3 force-pushed the patch-5 branch 2 times, most recently from d24b15b to 98b26d8 Compare June 17, 2026 15:39
@oech3 oech3 changed the title tests, coreutils.sh: ensure utility name is detected at shebang tests: coreutils.sh: ensure utility name is detected at shebang Jun 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

tests/env/env.sh: Improve simple_echo

2 participants