Hi, I'm not sure this a feature or bug, but:
$ BASH_ARGV0=foo /usr/local/stow/bash/bin/bash -c 'echo "$0"' /usr/local/stow/bash/bin/bash I expect $0 set to foo instead. In zsh: $ ARGV0=foo zsh -c 'echo $0' foo Set BASH_ARGV0 after initialize the shell works as expected. Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -g -O2 -Wno-parentheses -Wno-format-security uname output: Linux cuonglm 4.15.0-42-generic #45~16.04.1-Ubuntu SMP Mon Nov 19 13:02:27 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux Machine Type: x86_64-pc-linux-gnu Bash Version: 5.0 Patch Level: 0 Release Status: release Cuong Manh Le https://cuonglm.xyz