doesn't bash do variable subst. or quote removal on function statement

2016-01-09 Thread Linda Walsh
Reuti wrote: Am 08.01.2016 um 21:36 schrieb Piotr Grzybowski: hello Linda, On Fri, Jan 8, 2016 at 9:14 PM, Linda Walsh 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; But 'f

Re: 'official function declaration format' doesn't work if alias defined

2016-01-09 Thread Eric Cook
In mksh, ksh93, zsh and maybe others, you can use quotes to suppress alias expansions during definition just like you would a simple command; unfortunately bash deems it a invalid identifier.

Re: aliases v. functions; command extension? (-f & -F)?

2016-01-09 Thread Piotr Grzybowski
On Sat, Jan 9, 2016 at 8:12 PM, Reuti 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

Re: aliases v. functions; command extension? (-f & -F)?

2016-01-09 Thread Reuti
Am 08.01.2016 um 21:36 schrieb Piotr Grzybowski: > hello Linda, > > On Fri, Jan 8, 2016 at 9:14 PM, Linda Walsh 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 n