packages: synergy/synergy-client.init - do not use exit in xinitrc, use ret...
Tomasz Pala
gotar at polanet.pl
Mon Jan 30 15:43:10 CET 2012
On Mon, Jan 30, 2012 at 07:28:24 +0200, Elan Ruusamäe wrote:
>>> +# is_yes taken from rc-scripts
>>> +is_yes()
>>> +{
>>> + # Check value
>>> + case "$1" in
>>> + yes|Yes|YES|true|True|TRUE|on|On|ON|Y|y|1)
>>> + # true returns zero
>>> + return 0
>>> + ;;
>>> + *)
>>> + # false returns one
>>> + return 1
>>> + ;;
>>> + esac
>>> +}
>> What's the point of this?
> those scripts are sourced in same context, the less they load and
> clobber globals the better
If they are, then is_yes is already defined and you shall not redefine
it.
--
Tomasz Pala <gotar at pld-linux.org>
More information about the pld-devel-en
mailing list