[TxMt] Bash query

Allan Odgaard throw-away-2 at macromates.com
Tue Nov 6 22:34:21 UTC 2007

On 6 Nov 2007, at 12:35, Richard Dyce wrote:

> Not urgent an query, just looking for some insight...
> [...]
> Whilst it does work, I realised that there are more cunning minds at  
> work on this list than mine, and perhaps they might have some way to  
> clean-up those substitutions for the $tags variable in the middle. I  
> know I can do it using a sed script, but I was wondering if there  
> was some elegant bash trick I was missing....

Nope, bash is very limited in that way, i.e. it basically does a two- 
step variable expansion with close to no support for recursive  
constructs (forcing you to call out to a more capable scripting  
language or split up your expressions into multiple lines).

More information about the textmate mailing list