Email List: Xaustin-group-lX
[All Lists]

RE: Re: Filenames with "/"

To: "Seeds, Glen" <yyyyyyyyyy@xxxxxxxxxx>
Subject: RE: Re: Filenames with "/"
From: "Chris F.A. Johnson" <yyyyyyyyyy@xxxxxxxxxx>
Date: Mon, 6 Jun 2005 11:28:34 -0400 (EDT)
Cc: yyyyyyyyyyyyyy@xxxxxxxxxxxxx
References: <9BFB7804FD3C2E498082D60C3B80BC7901DB77E0@sottemail2.ent.ad.cognos.com>
On Mon, 6 Jun 2005, Seeds, Glen wrote:

The prudent shell script writer will also use "$@" and `ls` rather than
$* and *, to guard against embedded spaces.
   The prudent script writer will use "$@" instead of $* when that is
   what's wanted (as it usually is), but using `ls` instead of *
   exacerbates the problem of spaces in file names.

--
    Chris F.A. Johnson                     <http://cfaj.freeshell.org>
    ==================================================================
    Shell Scripting Recipes: A Problem-Solution Approach, 2005, Apress
    <http://www.torfree.net/~chris/books/cfaj/ssr.html>

<Prev in Thread] Current Thread [Next in Thread>