[MPlayer-dev-eng] Re: [bug] help/help_diff.sh again
GoTaR
gotar at poczta.onet.pl
Sat Jan 18 12:03:45 CET 2003
On Sat, Jan 18, 2003 at 10:44:54 +0100, Arpi wrote:
> > Hey, did anyone read this!?
>
> yes, but i didn't like it...
>
> what if someone has no external echo command?
Yes, that's problem.
> or it isn't at /bin/ but
> somewhere else? (/usr/bin/ for example, like here)
If there is external echo it can't be in /usr according to FHS.
Question is what about non-FHS compliant systems.
> imho sth like
>
> ECHO=`which echo`
> if -z $ECHO ; then
> ECHO='echo'
> fi
>
> should be added at least
No. And what if someone has no external _which_ command?
~: which which
which: shell built-in command
~: =which
zsh: which not found
ash and pdksh don't have internal, so it would break. bash cannot use
internal when called by sh. zsh can, but returns:
echo: shell built-in command
(EVEN when there is extrenal one) so it won't pass -z test.
One can get external with path passing =command (=echo) to zsh.
There must be some plain requirements for building. #!/bin/sh is
ambigous and as you can see - it doesn't guarantee providing right
functionality. Consider falling back to #!/bin/bash or rewriting script
in perl or sth.
Anyway, the best way would be to use locale and gettext()...
--
GoTaR <priv0.onet.pl->gotar>
PLD stuff at http://mops.uci.agh.edu.pl/~gotar/
***************r-e-k-l-a-m-a**************
Chcesz oszczedzic na kosztach obslugi bankowej ?
mBIZNES - konto dla firm
http://epieniadze.onet.pl/mbiznes
More information about the MPlayer-dev-eng
mailing list