On 2007-12-09 02:26:58 +0100, Vincent Lefevre wrote: > prunille:~> incl="(-|)include" > prunille:~> echo ${input##(-|)include ##} > foo > prunille:~> echo ${input##$incl ##} > include foo But: prunille:~> echo ${input##${~incl} ##} foo The attached patch works, but I'm not sure it is correct. -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)