On Wed, Jul 10, 2019 at 10:29:14PM +0700, Robert Elz wrote:
>     From:        L A Walsh <b...@tlinx.org>
>   | Functions can't process their arguments in the current scope.
> 
> I have no idea what you're getting at there.

She wants something like Tcl's [uplevel] command, most likely.

http://www.tcl.tk/man/tcl8.6/TclCmd/uplevel.htm

Short version: evaluate a command in the caller's scope, instead of in
the function's scope.  In Tcl, you can use this (WITH EXTREME CAUTION)
to implement new commands with the semantic powers of "if" or "for".
It makes "eval" look like a toy.

Bash has nothing like this.  Bash doesn't even come CLOSE to this.
It was never designed for this.  It's a SHELL.  If she's using aliases
to try to mimic this behavior, I have nothing more to say on this topic.
Horse, beating.

Reply via email to