[OS X TeX] [OT: sed] Does not find my private texmf tree

Dave Murray-Rust D.S.Murray-Rust at sms.ed.ac.uk
Wed Sep 5 07:59:39 EDT 2007


On 5 Sep 2007, at 12:28, Maarten Sneep wrote:

> Martin Costabel schreef:
>> Bruno Voisin wrote:
>>
>>> (taken from a recent
>>> message by Maarten Sneep, and yes there's indeed a line break in the
>>> command):
>>>
>>> kpsewhich -show-path=tex -progname=latex| sed 's/:/\
>>> /g'
>>
>> Small remark: Instead of the sed command with the line break,  
>> which in
>> addition does not work with tcsh, it is simpler to use tr,
>>
>>   kpsewhich -show-path=tex -progname=latex| tr : '\n'
>
> But then, who uses tcsh :p
>
> sed on linux allows for escapes, so there you can use: sed 's/:/\n/ 
> g', but
> to my surprise that didn't work on my Mac, and therefore this  
> alternative.
> tr is of course the tool meant to be used here.

I've just found that sed from fink does support escapes, in case  
that's useful to anyone.

Cheers,
dave




------------------------- Helpful Info -------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/
List Reminders & Etiquette: http://www.esm.psu.edu/mac-tex/list/





More information about the MacOSX-TeX mailing list