Use -e :
#!/bin/bash read -e -p "Enter filename, use tab for completion: " file ls -l "$file"
-e uses the readline library to read input in the same way as bash for prompts. This allows you to not only fill out the file name, but also use the arrow keys, home / end, vi editing and similar kindness.
that other guy
source share