Results 1 to 2 of 2
Hello,
In my backupsscript the user must give in a path. For this I use the command read but the stupid thing is that when you do it like this, ...
- 05-28-2009 #1Just Joined!
- Join Date
- May 2009
- Posts
- 3
Read a path
Hello,
In my backupsscript the user must give in a path. For this I use the command read but the stupid thing is that when you do it like this, the tab button doesn't work anymore to complete automaticly the pads.
Is there an option for the read command that you can use the tab to complete path?
Greetz,
Dries
- 05-28-2009 #2
Read is not the same as the shell. Read simply gets a string from STDIN there is no association with the shell or file system. I doubt you could write a function to do autocomplete simply by using read. For all the options for read type man read.


Reply With Quote