You can do these

$ %f(){ :;}
$ declare -f %f
%f ()
{
    :
}
$ unset -f %f
$ declare -f %f
$ echo $?
1

but not call them

$ %f
bash: fg: %f: no such job
$ '%f'
bash: fg: %f: no such job
$ \%f
bash: fg: %f: no such job

Why is that? Would it be a bad idea to let such functions take
precedence over jobspecs?

Oğuz

Reply via email to