[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/
- Re: 'official function declaration format' doesn't work if alias defined, (continued)
- Re: 'official function declaration format' doesn't work if alias defined, Greg Wooledge, 2016/01/07
- Re: 'official function declaration format' doesn't work if alias defined, Reuti, 2016/01/07
- Re: aliases v. functions; command extension? (-f & -F)?, Linda Walsh, 2016/01/08
- doesn't bash do variable subst. or quote removal on function statement, Linda Walsh, 2016/01/09
- Re: doesn't bash do variable subst. or quote removal on function statement, Andreas Schwab, 2016/01/10
- Re: differences in Q.-removal, var-expansion and allowed characters in fn & var names, Linda Walsh, 2016/01/10
- Re: differences in Q.-removal, var-expansion and allowed characters in fn & var names,
Chet Ramey <=
- Re: doesn't bash do variable subst. or quote removal on function statement, Chet Ramey, 2016/01/11
- Re: doesn't bash do variable subst. or quote removal on function statement, Linda Walsh, 2016/01/12
- Re: doesn't bash do variable subst. or quote removal on function statement, Greg Wooledge, 2016/01/12
- Re: doesn't bash do variable subst. or quote removal on function statement, Linda Walsh, 2016/01/12
- Re: doesn't bash do variable subst. or quote removal on function statement, Chet Ramey, 2016/01/13
- Re: doesn't bash do variable subst. or quote removal on function statement, Linda Walsh, 2016/01/13
- Re: doesn't bash do variable subst. or quote removal on function statement, Chet Ramey, 2016/01/13
- Re: doesn't bash do variable subst. or quote removal on function statement, Chet Ramey, 2016/01/13
- Re: aliases v. functions; command extension? (-f & -F)?, Chet Ramey, 2016/01/11
- Re: aliases v. functions; command extension? (-f & -F)?, Reuti, 2016/01/11