Using -e
as a flag in a command bash file isn't recognized. Let's say we have a bash file named server.sh, which only echoes all the passed arguments:
server.sh
echo "$@"
Here are the results so far when server.sh is executed with an -e
as a first argument:
./server.sh -e hello ## output: hello
./server.sh -eeeee world ## output: world
./server.sh -eeeeeeeeeeeee what ## output: what
Any other arguments are valid except for arguments that starts with an -e
. Can anyone tell me the reason why this is happening? And is there a way to make the -e
argument be recognized in server.sh?