[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: aliases v. functions; command extension? (-f & -F)?
From: |
Reuti |
Subject: |
Re: aliases v. functions; command extension? (-f & -F)? |
Date: |
Sat, 9 Jan 2016 20:12:02 +0100 |
Am 08.01.2016 um 21:36 schrieb Piotr Grzybowski:
> hello Linda,
>
> On Fri, Jan 8, 2016 at 9:14 PM, Linda Walsh <bash@tlinx.org> wrote:
>>
>> For what it's worth, It might be useful to have something like
>> 'command' [..]
>
> that would be useful, a keyword like:
>
> function p params;
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
> that always calls function no matter what. maybe best would be to have
> something like:
>
> run -f fname params # if (f=find_function("fname"))!=null executes f else
> error
> run -c cname params # same as command cname params
> same with alias?
>
> maybe together with some general "whatis" mechanism, that would give
> information about a symbol, its definitions, and the order in which
> they are to be resolved.
Does:
type - a P
list them in order? It seems always to be in the order alias - function -
command.
-- Reuti
- '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