Find the answer to your Linux question:
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, ...
  1. #1
    Just 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

  2. #2
    Linux Guru gogalthorp's Avatar
    Join Date
    Oct 2006
    Location
    West (by God) Virginia
    Posts
    3,105
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...