For some reason read -e isn't working in my script. I need a directory as input from a user and I'd like for them to be able to use tab complete which is why I'm using -e. When the script is run, I get:
read: line 6: illegal option -e
In order to just figure out what is going on with the -e option I made a small test script that gives the error:
#!/bin/bash
set -e
echo "This is a test."
read -e dir
echo $dir
Anyone know why I would be getting the illegal option -e?
or is there another way to get tab complete for the user input?