$BASH_ARGV0  –  Name of the Shell or Script

$BASH_ARGV0 expands to the name of the current shell or script. Values assigned to it also apply to $0.

Examples

Override $BASH_ARGV0 and $0
1
2
BASH_ARGV0=/bin/bash
echo $BASH_ARGV0 $0
BashSupport Pro is a Bash IDE with support for $BASH_ARGV0try it now!
© 2020–2024 Joachim Ansorg
Imprint
Privacy Policy
Legal