Timeline for Bash tab completion deletes text
Current License: CC BY-SA 4.0
        7 events
    
    | when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Sep 7, 2018 at 10:25 | vote | accept | Dero | ||
| Sep 7, 2018 at 10:04 | comment | added | Dero | @Kusalananda I know that there needs to be a connection established and I know that you start via ssh in the users home directory. But first of all it could be that I log in as root or any other user and second this is an abstracted example. It may be another directory then the home directory. | |
| Sep 7, 2018 at 8:49 | answer | added | αғsнιη | timeline score: 1 | |
| Sep 7, 2018 at 8:33 | comment | added | JdeBP | Psst! Kusalananda! Connecting to the remote server and listing the directories is what the Z shell actually does when completing such a command, so this is not a wholly unreasonable expectation. | |
| Sep 7, 2018 at 8:07 | comment | added | Kusalananda♦ | 
        
            
    Yes, it looks wrong. However, what are you expecting the tab completion to complete? A directory on the remote server? To get the pathname of that directory, bash would have to connect to the server and investigate the path. Also, to access the home directory of the user that you connect as, you don't have to go the long way to specify the absolute path.  Any relative path would be relative to the home directory of the user.
        
     | 
|
| Sep 7, 2018 at 8:00 | review | First posts | |||
| Sep 7, 2018 at 8:03 | |||||
| Sep 7, 2018 at 7:59 | history | asked | Dero | CC BY-SA 4.0 |