[TextMate] Custom Shell Variables question

Sune Foldager cryo at diku.dk
Tue Oct 19 00:48:52 UTC 2004


On 18. okt 2004, at 15:35, Mats Persson wrote:
> So I am trying this inside a text doc in TM with no success. What's 
> wrong ??
>
> 	TM_PROJ_FILEPATH=`$TM_FILEPATH | sed 
> "s|^$TM_SITES_DIRECTORY\(.*\)\$|\1|"`
> 	echo $TM_PROJ_FILEPATH
> /bin/sh: line 1: 
> /Volumes/WorkDisk/Users/mats/Sites/projectName/index.php: Permission 
> denied

You want: TM_PROJ_FILEPATH=`echo $TM_FILEPATH | sed 
"s|^$TM_SITES_DIRECTORY\(.*\)\$|\1|"`
Instead I think.

-- 
Sune.
"Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn"
http://cyanite.org  --  Content follows ;-).




More information about the textmate mailing list