bug-readline
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Tab doesn't autocomplete filename if only root can access it, even if I'


From: Tomas Zubiri
Subject: Tab doesn't autocomplete filename if only root can access it, even if I'm using sudo.
Date: Fri, 13 Mar 2020 04:49:24 -0300

Hello, consider the case where I'm trying to read the contents of /var/log/lighttpd/error.log, in order to do so I must use sudo.

I can use tab to auto complete most of the path except for the filename, because it's protected. At this point, I might believe that the file doesn't exist, because I use tab to query directory contents, and I'm using sudo so I disregard file permission issues.

Would it be possible for readline's autocomplete to integrate with sudo so that it autocompletes the filename of root-protected files?

Additionally I tried to use sudo su, but tab fails there for basic commands like man lighttpd.

Thank you.

Tomas Zubiri



reply via email to

[Prev in Thread] Current Thread [Next in Thread]