help-bash
[Top][All Lists]
Advanced

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

Re: [Help-bash] How to print a bash variable in the most succinct way?


From: Greg Wooledge
Subject: Re: [Help-bash] How to print a bash variable in the most succinct way?
Date: Tue, 16 Aug 2016 15:32:27 -0400
User-agent: Mutt/1.4.2.3i

On Tue, Aug 16, 2016 at 02:21:52PM -0500, Peng Yu wrote:
> How to only generate variables that are modifiable (i.e., not readonly)?

If you are so incredibly lazy that you can't accept the straightforward
solution ("make a list of all the variables I need to export, and then
export them"), why are you not simply using the lazy person's "set -a"
alternative to export ALL your variables?

As suggsted by Pierre Gaston in:
http://lists.gnu.org/archive/html/help-bash/2016-08/msg00047.html

You seem to be so lazy that you won't do the obvious right thing, but
also you seem to be unwilling to accept the solution that was created
specifically to LET PEOPLE BE LAZY.  I don't know what you want.

(Actually I have a theory about what you want, but I hope I am wrong.
Nevertheless, I fear I must be right, because I have eliminated all
of my other hypotheses.)



reply via email to

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