Skip to content

Conversation

non-bin
Copy link

@non-bin non-bin commented Sep 11, 2024

Originally the chmod_x rule only worked for scripts run with relative paths (eg ./funStuff.sh) but that's not always what we need. Imagine I have a file at /home/alice/scripts/funStuff.sh

$ pwd
/home/alice
# I could run the script with any of these:
$ ./scripts/funStuff.sh
$ ~/scripts/funStuff.sh
$ /home/alice/scripts/funStuff.sh

Originally this rule only worked for scripts run with relative paths (eg `./funStuff.sh`) but that's not always what we need
Imagine I have a file at `/home/alice/scripts/funStuff.sh` and my cwd is `/home/alice` I could run the script with `./scripts/funStuff.sh` or '~/scripts/funStuff.sh` or `/home/alice/scripts/funStuff.sh`
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