Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Refering to overlaid variable from within a function



On Sep 12,  2:24am, Phil Pennock wrote:
}
} >         trap "$1+=\" and \"${(q-)a}" EXIT
} 
} % foo
} this is foo's a
} this is bar's a
} bar:3: error in flags
} 
} Tried with 4.3.10 and 4.3.9.

Sorry, I tend to test everything against the most recent CVS checkout
and I forgot that (q-) isn't in 4.3.10.

As of a recent patch proposed by PWS, the trap trick would require
"unsetopt POSIX_TRAPS".



Messages sorted by: Reverse Date, Date, Thread, Author