Skip to content

nohup: report command execution errors - #13391

Merged
sylvestre merged 1 commit into
uutils:mainfrom
wtcpython:nohup-report-exec-errors
Jul 18, 2026
Merged

nohup: report command execution errors#13391
sylvestre merged 1 commit into
uutils:mainfrom
wtcpython:nohup-report-exec-errors

Conversation

@wtcpython

Copy link
Copy Markdown
Contributor

Fixes #12693.

nohup used the error returned by exec only to select the exit status, without reporting why the command could not be started.

Display the underlying execution error before returning, matching GNU's diagnostic while preserving the existing exit codes. strip_errno removes Rust's platform-specific (os error N) suffix.

Extend the existing command-not-found test to check the diagnostic.

@github-actions

Copy link
Copy Markdown

GNU testsuite comparison:

Skip an intermittent issue tests/tail/symlink (fails in this run but passes in the 'main' branch)
Skipping an intermittent issue tests/cut/bounded-memory (passes in this run but fails in the 'main' branch)
Skipping an intermittent issue tests/misc/io-errors (passes in this run but fails in the 'main' branch)
Skipping an intermittent issue tests/tail/retry (passes in this run but fails in the 'main' branch)
Skipping an intermittent issue tests/tail/tail-n0f (passes in this run but fails in the 'main' branch)

@wtcpython

Copy link
Copy Markdown
Contributor Author

Hi, just a gentle ping in case this got buried. When you have a chance, could you please take a look? Thanks!

@sylvestre

Copy link
Copy Markdown
Contributor

Please be patient. We have a long backlog

@sylvestre
sylvestre merged commit b40aaf6 into uutils:main Jul 18, 2026
105 of 165 checks passed
@wtcpython
wtcpython deleted the nohup-report-exec-errors branch July 18, 2026 07:16
@wtcpython

Copy link
Copy Markdown
Contributor Author

Understood — apologies for the premature ping, and thank you for taking the time to review and merge it.

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.

bug(nohup): Silence errors

2 participants