Path: csiph.com!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail From: Greg Wooledge Newsgroups: gnu.bash.bug Subject: Re: alias problem -- conflict found Date: Wed, 10 Jul 2019 11:54:27 -0400 Lines: 20 Approved: bug-bash@gnu.org Message-ID: References: <5D25D398.7010300@tlinx.org> <5D255A6E.4060600@tlinx.org> <5D23C417.5060108@tlinx.org> <20190709132112.GW2450@eeg.ccf.org> <10340.1562742284@jinx.noi.kre.to> <11760.1562772554@jinx.noi.kre.to> <20190710155427.GK2450@eeg.ccf.org> NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: usenet.stanford.edu 1562774074 12752 209.51.188.17 (10 Jul 2019 15:54:34 GMT) X-Complaints-To: action@cs.stanford.edu To: bug-bash@gnu.org Envelope-to: bug-bash@gnu.org Mail-Followup-To: bug-bash@gnu.org Content-Disposition: inline In-Reply-To: <11760.1562772554@jinx.noi.kre.to> User-Agent: Mutt/1.10.1 (2018-07-13) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 139.137.100.1 X-BeenThere: bug-bash@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Bug reports for the GNU Bourne Again SHell List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: <20190710155427.GK2450@eeg.ccf.org> X-Mailman-Original-References: <5D25D398.7010300@tlinx.org> <5D255A6E.4060600@tlinx.org> <5D23C417.5060108@tlinx.org> <20190709132112.GW2450@eeg.ccf.org> <10340.1562742284@jinx.noi.kre.to> <11760.1562772554@jinx.noi.kre.to> Xref: csiph.com gnu.bash.bug:15122 On Wed, Jul 10, 2019 at 10:29:14PM +0700, Robert Elz wrote: > From: L A Walsh > | 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.