[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Fix testsuite when `pwd` contains spaces
From: |
Eric Blake |
Subject: |
Re: Fix testsuite when `pwd` contains spaces |
Date: |
Tue, 25 Mar 2008 06:02:38 -0600 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.12) Gecko/20080213 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to Ralf Wildenhues on 3/25/2008 12:41 AM:
| Applied as obvious.
|
| -abs_builddir=`pwd`
| +abs_builddir='`pwd`'
Huh? Variable assignment does not need quotes if the syntax forms a
single shell word, since it does not undergo word splitting. Or did you
really mean to add single quotes rather than double quotes to defer
evaluation?
$ mkdir '/tmp/with spaces'
$ cd '/tmp/with spaces'
$ foo=`pwd`
$ bar='`pwd`'
$ echo ":$foo:$bar:"
:/tmp/with spaces:`pwd`:
- --
Don't work too hard, make some time for fun as well!
Eric Blake address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkfo6d0ACgkQ84KuGfSFAYDy2wCeOUcrTD43+h6Gjah9ww8DlzEJ
cUEAniW7o+/2k4OCKGAn+URuWs7lv/eC
=Bz6k
-----END PGP SIGNATURE-----