[TxMt] Re: Fwd: Re: Regular expression for current file name without extension

Christopher Creutzig christopher at creutzig.de
Mon May 25 16:54:35 UTC 2009

Jan Jakob Bornheim wrote:

> If I simply define the command to be "bibtex
> ${TM_LATEX_MASTER%.*}.rsp.aux", bibtex itself gives the error "Need
> exactly one file argument".If I instead define the command to run on
> the actual file name (i.e. bibtex master.rsp.aux), it works.

 That looks to me as if your TM_LATEX_MASTER contained whitespace.

 Could you add, in front of that,


and see what that returns?

> So I assume the problem is that by using the second alternative, it is
> bibtex that tries to guess the meaning of the expression
> "${TM_LATEX_MASTER%.*}.rsp.aux", which it can't, while in the first

 No, that's the shell's task.  (This ain't CP/M.)


More information about the textmate mailing list