[RFC] Future of "messages" targets

Nicolas Goutte nicolasg at snafu.de
Thu Sep 15 15:39:42 BST 2005


On Wednesday 14 September 2005 11:41, Alejandro Exojo wrote:
> 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.

And how do you check that there was a "mv" declared as function.

Sure, defines are run before any outside executable or cript. But here we have 
no guarantee that the function was defined and that is the problem.

Have a nice day!





More information about the kde-core-devel mailing list