[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: aliases v. functions; command extension? (-f & -F)?
From: |
Chet Ramey |
Subject: |
Re: aliases v. functions; command extension? (-f & -F)? |
Date: |
Mon, 11 Jan 2016 10:19:29 -0500 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 |
On 1/9/16 5:06 PM, Piotr Grzybowski wrote:
> On Sat, Jan 9, 2016 at 8:12 PM, Reuti <reuti@staff.uni-marburg.de> wrote:
>>
>> AFAICS putting the name in quotes (single or double) will prefer the
>> function over the alias, but it will fall back to a command if there is no
>> function.
>>
>> 'P' params
>
> if Linda is ok with it, I will not argue, I would prefer an explicit
> way to call what I want.
You already know the invocation order, and there are several ways to alter
it. The whole reason `command' exists, for instance, is to skip the shell
function part of the command search.
--
``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/
- 'official function declaration format' doesn't work if alias defined, Linda Walsh, 2016/01/06
- 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, 2016/01/11
- 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