bug-bash
[Top][All Lists]
Advanced

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

Re: differences in Q.-removal, var-expansion and allowed characters in f


From: Chet Ramey
Subject: Re: differences in Q.-removal, var-expansion and allowed characters in fn & var names
Date: Mon, 11 Jan 2016 10:33:24 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.5.0

On 1/10/16 3:50 PM, Linda Walsh wrote:

> Yeah, sorta but I want it to do variable expansion AND quote removal.

Then you do have to use eval with appropriate quoting.

> I.e. using a var or DQ of the object-name, "a", works in declare.

You should consider the difference between an argument to a simple command
(declare) and an element of the shell grammar, since one undergoes word
expansions and the other does not.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/



reply via email to

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