[RFC] Future of "messages" targets

Alejandro Exojo suy at kurly.org
Wed Sep 14 10:41:43 BST 2005


El Martes, 13 de Septiembre de 2005 15:45, Nicolas Goutte escribió:
> Doing so brings a problem: there does not seem to be a way in Bash to call
> only a function (and not that a command of the same named is executed from
> somewhere in $PATH).

According to "learning the bash shell", from O'Reilly:

This is a good time to show the order of precedence for the various sources of 
commands when you type a command to the shell:
1.       Aliases
2.       Keywords such as function and several others, like if and for, that 
we will see in Chapter 5
3.       Functions
4.       Built-ins like cd and type
5.       Scripts and executable programs, for which the shell searches in the 
directories listed in the PATH environment variable

And a quick try with a POSIX shell:

$ ps | grep $$
11721 pts/2    00:00:00 dash
$ mv
mv: missing file argument
Try `mv --help' for more information.
$ mv () echo "this is a function"
$ mv
this is a function

HTH.

-- 
Alex (a.k.a. suy) - GPG ID 0x0B8B0BC2
http://darkshines.net/ - Jabber ID: suy at bulmalug.net




More information about the kde-core-devel mailing list