autoconf
[Top][All Lists]
Advanced

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

Re: automatic setting of srcdir


From: Akim Demaille
Subject: Re: automatic setting of srcdir
Date: 07 Nov 2000 18:09:45 +0100
User-agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)

>>>>> "Lars" == Lars J Aas <address@hidden> writes:

Lars> Sure, but useless quotes are better than missing quotes.  I
Lars> haven't studied the Bourne shell syntax that hard, and given all
Lars> the variations over how the so-called Bourne shell compatible
Lars> shells behave, I've taken the better safe than sorry approach to
Lars> sh scripting.

Yes and no.  Your reason is correct, but as a corollary it will push
you toward nonportable constructs.  For instance your

absolute="`cd "$relative" && pwd`"

is not portable, and nor is

absolute="`cd \"$relative\" && pwd`"

while

absolute=`cd "$relative" && pwd`

is.  Overquoting has its problems too.

You don't have to quote rhs of assignments, nor the case argument

case `echo there are spaces in there` in
  "there are"*there ) echo OK;;
  *) echo 'Niah???';;
esac



reply via email to

[Prev in Thread] Current Thread [Next in Thread]