[Gllug] Grepping tab-completions

Russell Howe rhowe at siksai.co.uk
Mon Jun 13 11:49:21 UTC 2005

On Mon, Jun 13, 2005 at 10:48:58AM +0100, Tom Schutzer-Weissmann wrote:
> On Mon, 2005-06-13 at 10:41 +0100, Russell Howe wrote:
> > $ find ${PATH//:/ } -maxdepth 1 -type f -name 'k*exec'
> That inline substitution is very neat...

But insecure, if you don't trust the environment variable not to include
things like '-exec rm .' (if you can't trust the value of $PATH, you
have problems :)

Russell Howe       | Why be just another cog in the machine,
rhowe at siksai.co.uk | when you can be the spanner in the works?
Gllug mailing list  -  Gllug at gllug.org.uk

More information about the GLLUG mailing list