[RFC] Future of "messages" targets

Nicolas Goutte nicolasg at snafu.de
Thu Sep 15 16:15:02 BST 2005


On Thursday 15 September 2005 17:07, Thiago Macieira wrote:
> Nicolas Goutte wrote:
> >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.
>
> Why would you want to depend on a function you didn't declare and aren't
> sure to be there? If you want it, simply declare it.

Stephan Kulow wants to source (not excute) the script. I am not sure that Bash 
can handle two defintions of the same function. (I have not tested.)

And it cannot be guaranteed that the function will be defined, as there could 
be an error in the script, the same as there are currently errors in some 
"messages" targets.

So we need to be able to catch such errors. We do not need more than an error 
message, but we need to create that error message.

>

> I understand the other way around: you may want a certain command to be
> the command itself, not a function or alias.

As far as I have understood, that would be easy in Bash, as you could ask Bash 
to ignore the function.

Have a nice day!





More information about the kde-core-devel mailing list