[PATCH] Ensure that absolutized paths from hgrc do not contain ../ segments

Jesse Glick jesse.glick at sun.com
Sat Jan 26 08:18:40 CST 2008


Matt Mackall wrote:
>>>> +hg in dupe | sed "s!$base!<base>!g"
>>>> +cd ..
>>>> +hg -R a in dupe | sed "s!$base!<base>!g"
>>> ... this sed looks scary.
> 
> $ echo foo | sed "s!$base!<base>!g"
> bash: !: event not found

Huh. Works on Ubuntu, perhaps because /bin/sh is really /bin/sh, not 
/bin/bash. I will resubmit with ',' as the separator which seems OK.



More information about the Mercurial-devel mailing list