Tag: + confirmed pending Hi Tim,
On 2015-10-08 16:36:26 Tim Landscheidt wrote: > | An alternative for setting up the commands path is using the > | fact that many shells will treat the tilde(~) as substitution > | of $HOME, so if you use bash for your tasks you can use this: > > | SHELL=/bin/bash > | PATH=~/bin:/usr/bin/:/bin > > Specifically bash (and probably other shells as well) only treats the > tilde in this way when expanding the command line that /sets/ the > environment variable, not when /reading/ it for the path of an > executable. I. e., in a shell session/script, the second line would > cause $PATH to be set to (for example) "/home/tim/bin:/usr/bin/:/bin", > while if it is set in this manner in a crontab, in the shell it is set > to "~/bin:/usr/bin/:/bin" (and thus wouldn't find executables in > /home/tim/bin, but only in the subdirectory "bin" of the subdirectory > "~" of the current directory (and /usr/bin and /bin)). > > The paragraph should be removed completely. thank you for your report. Your reasoning is sound, and I have verified this for the bash shell. I've reversed the documentation on this, and moved this example to the examples that won't work. Thanks, Christian

