Jon Seymour <jon.seym...@gmail.com> wrote: > On Mon, Feb 16, 2009 at 10:22 AM, Paul Jarc <p...@po.cwru.edu> wrote: >> CPATH=${CPATH:+$CPATH:}${#+~usr1/blah/blah} > > Out of interest, how does one derive that outcome from the documented > behaviour of bash? That is, which expansion rules are being invoked?
It's ${parameter+word}, using $# (which is always set) as the parameter. paul