[PATCH 1 of 5 STABLE] dockerdeb: elimate 'cd' in export command

Sean Farley sean at farley.io
Sun Apr 17 15:55:05 EDT 2016


Pierre-Yves David <pierre-yves.david at ens-lyon.org> writes:

> On 04/17/2016 10:26 AM, Sean Farley wrote:
>> Anton Shestakov <engored at ya.ru> writes:
>>
>>> 17.04.2016, 17:30, "Anton Shestakov" <engored at ya.ru>:
>>>> 17.04.2016, 15:12, "Sean Farley" <sean at farley.io>:
>>>>> # HG changeset patch
>>>>> # User Sean Farley <sean at farley.io>
>>>>> # Date 1460763964 25200
>>>>> # Fri Apr 15 16:46:04 2016 -0700
>>>>> # Branch stable
>>>>> # Node ID 13497f113084b34a392332070581433e9384f6a2
>>>>> # Parent e442b628bfe6485d57ab4f10f941b89e96f04b05
>>>>> # EXP-Topic ppa
>>>>> dockerdeb: elimate 'cd' in export command
>>>>>
>>>>> This had the unfortunate side effect of causing the environment to have a
>>>>> newline due to the fact that some 'cd' outputs the result of the directory
>>>>> change.
>
> The case I know where cd output the directory change is with bash when 
> you are using the CDPATH feature.

Yeah, that's probably what caused this. I sent a V2 which should be much
safer overall (feel free to add more comments to the commit message).


More information about the Mercurial-devel mailing list