` Eric Blake wrote:
On 08/15/2011 04:40 PM, Sam Steingold wrote:
* Andreas Schwab<fpu...@yvahk-z68x.bet> [2011-08-15 22:04:04 +0200]:
Sam Steingold<s...@gnu.org> writes:
Cool. Now, what does this imply?
"For almost every purpose, shell functions are preferred over
aliases."
so, how do I write
alias a=b
as a function?
(remember that arguments may contain spaces&c)
a() { b "$@"; }
---
Way too easy.
how do you declare a variable for storage in the context of the caller?
(using a function)...
???
The DebugPush & DebugPop routines I used needed to store
the current func's flags in it's context -- I found it very troublesome
inside a function, to store a value into a local variable in the caller.