[TxMt] Mercurial bundle

Fred B. fredb7 at starflam.com
Sat May 6 14:02:11 UTC 2006


On 04 May 2006, at 06:41, Allan Odgaard wrote:
> Here single spaces in file names would not be a problem. But had  
> there been two consecutive spaces, or the use of tabs or newlines,  
> then it would have failed.
>
> The reason why a variable needs to be quoted is, that the shell  
> will “split it” into multiple arguments, based on spaces, newlines,  
> and tabs. So for example:

(...)

Wow. Thanks for the long explanation, Allan. Definitely a keeper.

>> [...] The second doesn't escape the path, as if there wasn't the  
>> dummy variable.
>
> Sorry, it should have been:
>
>    dummy='"$HG_STYLE"'

Working now, thanks. I've updated the bundle. Please, Mercurial  
users, report any problem.

>> But, I just found that $HG_STYLE was 'too' escaped in the other  
>> line (without eval), maybe that was the problem.
>
> Not in the snippet you sent to this list.

Sorry about that. I corrected it and forgot about it as Brad was  
talking about the eval line.

--
Fred





More information about the textmate mailing list