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

Pass relative, not canonicalized, path to script #33

Merged
merged 1 commit into from Jul 13, 2017
Merged

Pass relative, not canonicalized, path to script #33

merged 1 commit into from Jul 13, 2017

Conversation

ids1024
Copy link
Contributor

@ids1024 ids1024 commented Jul 13, 2017

No description provided.

@jackpot51
Copy link
Member

What is the purpose of this?

@ids1024
Copy link
Contributor Author

ids1024 commented Jul 13, 2017

This is the typical behavior; argv[0] (with either a script or executable) should be the name it was called with.

This test.sh script executed ./test.sh should print ./test.sh on both Linux and Redox:

#!/bin/sh
echo $0

@ids1024
Copy link
Contributor Author

ids1024 commented Jul 13, 2017

Before, that code was printing the canonicalized path.

@jackpot51
Copy link
Member

Ok, cool

@jackpot51 jackpot51 merged commit 2c0cc3a into redox-os:master Jul 13, 2017
@ids1024 ids1024 deleted the path branch July 13, 2017 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants