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

Conversation

Projects
None yet
2 participants
@ids1024
Member

ids1024 commented Jul 13, 2017

No description provided.

@jackpot51

This comment has been minimized.

Member

jackpot51 commented Jul 13, 2017

What is the purpose of this?

@ids1024

This comment has been minimized.

Member

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

This comment has been minimized.

Member

ids1024 commented Jul 13, 2017

Before, that code was printing the canonicalized path.

@jackpot51

This comment has been minimized.

Member

jackpot51 commented Jul 13, 2017

Ok, cool

@jackpot51 jackpot51 merged commit 2c0cc3a into redox-os:master Jul 13, 2017

@ids1024 ids1024 deleted the ids1024:path branch Jul 13, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment