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