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

Re: sudo and globbing



On Mon, Feb 03, 2003 at 05:24:36AM -0800, Harry Putnam wrote:

> I didn't notice anything in man sudo to explain why globbing doesn't
> work using sudo.  At least in this instance

Globbing is done by your shell, i.e. before sudo is executed.  The
shell can't read those files, so you lose.

Perhaps use: sudo sh -c 'ls /root/inst*'

Tim.
*/

Attachment: pgp00005.pgp
Description: PGP signature


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