Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return error code for failure sourcing asdf.sh #620

Merged
merged 1 commit into from
Nov 3, 2022
Merged

Conversation

cpytel
Copy link
Member

@cpytel cpytel commented Nov 3, 2022

source (or .) is a built in command and as a result it halts script
execution, and the error code from the command is not returned. This
resulted in the exit code of the script in this case being 0 rather
than the error code of the source command, which is 127 (command not
found).

@cpytel cpytel force-pushed the source-exit-code branch 2 times, most recently from cc489e5 to 7b98541 Compare November 3, 2022 01:20
source (or `.`) is a built in command and as a result it halts script
execution, and the error code from the command is not returned. This
resulted in the exit code of the script in this case being `0` rather
than the error code of the source command, which is 127 (command not
found).
@cpytel cpytel merged commit 3f16c31 into main Nov 3, 2022
@cpytel cpytel deleted the source-exit-code branch November 3, 2022 01:57
@cpytel cpytel mentioned this pull request Nov 3, 2022
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.

1 participant