I'm trying to create a restore function for my trash folder. When you run the script, it asks you for the contents of the folder and asks you which one to restore, like this :
yedenn@hal:~/Cours$ res
-rw-r--r-- exemple
-rw-r--r-- test1
-rw-r--r-- test2
-rw-r--r-- test3
Which to restore? _
I'm wondering if there is a way to complete the file names by pressing <TAB>
(for example) ?
The solutions I've seen so far seem to work only when typing on the command line, not while the script is running.