bug-bash
[Top][All Lists]
Advanced

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

Re: doesn't bash do variable subst. or quote removal on function stateme


From: Chet Ramey
Subject: Re: doesn't bash do variable subst. or quote removal on function statement
Date: Wed, 13 Jan 2016 10:39:40 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.5.1

On 1/12/16 2:52 PM, Linda Walsh wrote:
> 
> 
> Chet Ramey wrote:
>> No.  The shell doesn't perform any word expansions on the `name' when
>> executing a function definition command.  Since the documentation doesn't
>> say it performs any expansions, why would you assume it does?
>>   
> Because it does quote quote removal on other statements that _seem_ to be
> of similar syntax.

Appearances can be deceptive.  The difference is between a simple command
(that happens to be a builtin) and an element of the shell grammar.

-- 
``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]