News for hackers. Stuff that matters.
Re:Bash 5.0 released by tjoff on Tuesday January 08, 2019 @04:07AM (#18854291)
Surely the user already knows how to invoke the program, since he/she did it literally two seconds ago.

What if I invoke it from a distant path, do I want my 73 character long path to be prepended in the --help ?

Re:Bash 5.0 released by majewsky on Tuesday January 08, 2019 @04:18AM (#18854348)
Especially on something like NixOS, where /bin/bash is actually /nix/store/3508wrguwrgu3h5y9354rhfgw056y-bash-5.0/bin/bash.
Re:Bash 5.0 released by LukeShu on Tuesday January 08, 2019 @10:58AM (#18856445)
Do note that was my complaint with $0, that when using $PATH it was set to that full gross path.

If /bin/foo is actually /nix/store/3508wrguwrgu3h5y9354rhfgw056y-foo-5.0/bin/foo, then when you run "foo", 0="/nix/store/3508wrguwrgu3h5y9354rhfgw056y-foo-5.0/bin/foo" and BASH_ARGV0="foo".

Re:Bash 5.0 released by tjoff on Tuesday January 08, 2019 @09:56AM (#18855853)
If you run --help you already have the path to the executable. Press the up arrow and you got it, even on nix.