[darcs-users] darcs patch: Do no word splitting after expansion in pwd-based shel...

Jason Dagit dagit at codersbase.com
Mon Sep 8 18:13:40 UTC 2008


On Mon, Sep 8, 2008 at 11:05 AM, David Roundy <droundy at darcs.net> wrote:
> On Mon, Sep 08, 2008 at 05:54:27PM +0000, E.Y.Kow at brighton.ac.uk wrote:
>> Another fast-trackee
>> Mon Sep  8 18:49:48 BST 2008  Eric Kow <E.Y.Kow at brighton.ac.uk>
>>   * Do no word splitting after expansion in pwd-based shell tests.
>>   Lest darcs/Cygwin be confused by spaces in the pwd output.
>
>> [Do no word splitting after expansion in pwd-based shell tests.
>> Eric Kow <E.Y.Kow at brighton.ac.uk>**20080908174948
>>  Lest darcs/Cygwin be confused by spaces in the pwd output.
>> ] hunk ./tests/mv-formerly-pl.sh 133
>>
>>  touch abs_path.t
>>  darcs add abs_path.t
>> +IFS=""
>>  REPO_ABS=`portable_pwd`

It was happening right here.  zooko discovered that bash does a bit of
magic processing for you based on the value of IFS when you have a
line like:
REPO_ABS=`portable_pwd`

Jason


More information about the darcs-users mailing list