Issue: Bash script displays its name upon execution

view story

http://www.linuxquestions.org – Hi everyone, I just noticed a rather annoying issue. Whenever I run a bash script, the first thing that it does is display the name of the script along with all the arguments passed to it (if there are any). However, nowhere in the script there is anything that provokes that behavior. See for example: Code: gacanepa@debian:~/scripts/bash/tests$ ./if_regex.sh 345-14-45 ./if_regex.sh 345-14-45 You provided the following argument: 345-14-45 yes where if_regex.sh is: Code: #!/bin/bash echo "You provided the following argument: $1" glob="[[:digit:]][[:digit:]][[:digit:]]-[[:di (HowTos)