4 ms·
i don't get it. you need to know where the script is to read the shebang... if it's in the user's home directory, you are already there or you either found it
by fsckboy 1y ago
i don't get it.
you need to know where the script is to read the shebang... if it's in the user's home directory, you are already there or you either found it on the path or typed it in... then with bash, tilde's everywhere else you need them?
- deleted 1y ago[deleted]
- deleted 1y ago[deleted]
- fracus 1y agoI don't want my user's home directory in the script and therefore, the shebang, for portability reasons. The best solution would to be able to refer to the location of the virtual environment in the shebang relative to the location of the script instead of the current working directory.
- fsckboy 1y agouser's home directory is in /etc/passwd and in $HOME in env. the way it's done is, you refer to these