bug-bash
[Top][All Lists]
Advanced

[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 <address@hidden> 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




reply via email to

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