Re: Question re: braces and quotes
- From: Bill Marcum <bmarcum@xxxxxxxxx>
- Date: Mon, 30 Oct 2006 13:32:26 -0500
On Mon, 30 Oct 2006 13:18:15 GMT, Peter
<peter@xxxxxxxxxxxxx> wrote:
# base is one of hourly, daily, etc. single word, no spacesAs far as I know, it is always safe to use braces. Possibly the script
# lockdir has slashes but no spaces
if [ -e ${LOCKDIR}/cron.$BASE ]
Is BASE not quoted or braced because it is a single word with no escape
type chars? Why is LOCKDIR in braces? Why are quoted UNnecessary?
was written by two or more people, or the author had previously written
something that required braces, such as ${LOCKDIR:-default}
--
If your hands are clean and your cause is just and your demands are
reasonable, at least it's a start.
.
- References:
- Question re: braces and quotes
- From: Peter
- Re: Question re: braces and quotes
- From: Barry Margolin
- Re: Question re: braces and quotes
- From: Peter
- Question re: braces and quotes
- Prev by Date: Re: manipulating PS1 in sh
- Next by Date: Re: manipulating PS1 in sh
- Previous by thread: Re: Question re: braces and quotes
- Next by thread: how to find which shell I am using currently
- Index(es):