I want the user to choose the file named "main folder" but if i just use read foldername ls $foldername it just reads the words "main" and "folder" separately (basically executing ls main instead of ls "main folder" how can i make so it includes spaces ? I have tried read -r foldername but no luck
Originally asked by Antonis Alzeer on Stack Exchange (askubuntu) (CC BY-SA 4.0).