bash scripting: filenames with spaces
here is a simple script I use to show how "select" works:
PS3="Which file do you want to know more about? "
select op in $OPTIONS
if [ "$op" = "Quit" ]; then
echo "See you!"
But this has a problem when a filename has spaces. It appears on the menu like two diferent options instead of one. I tried to use "ls -Q" or "ls -b" to protect these names, but it doesn't work.
Do you know how to solve it?
Thanks in advance,