TM_PACKAGE=`sed <<<$TM_NEW_FILE_DIRECTORY -n
's#.*include/(.*)#\1#p'|tr / .` \
Allan, I couldn't get this to work. The TM_PACKAGE is always blank.
You can see the command and template here http://paste.lisp.org/display/5811
Am I doing something wrong?
On 15. feb 2005, at 18:12, Ketan Anjaria wrote:
TM_PACKAGE=`sed <<<$TM_NEW_FILE_DIRECTORY -n
's#.*include/(.*)#\1#p'|tr / .` \
Allan, I couldn't get this to work. The TM_PACKAGE is always blank.
Gah... I hate sed and perl ;-).
On Feb 15, 2005, at 18:12, Ketan Anjaria wrote:
TM_PACKAGE=`sed <<<$TM_NEW_FILE_DIRECTORY -n
's#.*include/(.*)#\1#p'|tr / .` \
I couldn't get this to work. The TM_PACKAGE is always blank.
You can see the command and template here http://paste.lisp.org/display/5811
Am I doing something wrong?
Pasting in the above verbatim works for me. However, I forgot to quote the command, so if you had spaces in the path, that would have been reason for the failure. The quoted version looks like this:
TM_PACKAGE="`sed <<<"$TM_NEW_FILE_DIRECTORY" -n 's#.*include/(.*)#\1#p'|tr / .`" \
If you didn't have spaces in the path, did the path contain an 'include' component when you created the file?