bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Local variable names clash with global read-only variable names.


From: Dale R. Worley
Subject: Re: Local variable names clash with global read-only variable names.
Date: Sun, 03 May 2020 21:53:52 -0400

Greg Wooledge <wooledg@eeg.ccf.org> writes:
> Perl is a programming language.  It makes sense that perl would evolve
> in a way that makes it more useful for writing programs.
>
> Bash, on the other hand, is first and foremost a *shell*.  It's designed
> to act as an interface for executing commands, either interactively, or
> in a script.  Its use as a programming language is a distant second goal.

Oh, yeah, I don't think it would be at all worth the trouble to
implement lexical scoping in bash.  My point was, that if you *don't*
implement lexical scoping, you're pretty much guaranteed to get the sort
of conflicts between purposes that the original message points out.  And
it seems that the best choice in that conflict is the current behavior.

Dale



reply via email to

[Prev in Thread] Current Thread [Next in Thread]