Subject: Re: exit(-x) cleanup
To: Thomas Klausner <wiz@danbala.ifoer.tuwien.ac.at>
From: Greywolf <greywolf@starwolf.com>
List: tech-userlevel
Date: 04/05/2001 19:19:27
On Thu, 5 Apr 2001, Thomas Klausner wrote:
# Date: Thu, 5 Apr 2001 14:11:32 +0200
# From: Thomas Klausner <wiz@danbala.ifoer.tuwien.ac.at>
# To: tech-userlevel@netbsd.org
# Subject: exit(-x) cleanup
#
# Hi!
#
# I grep'ed the source tree[1] for all usages of exit(-x), and tried to
# replace them with exit(x), to be in better conformance with
# /usr/share/misc/style, and because negative values get mapped to
# positive ones anyway.
#
# Any comments before I commit?
1. sh complains bitterly while doing the conversion :-)
2. csh treats it as unsigned.
3. bash treats it as unsigned.
4. ksh gives an error and exits with 1.
Go for it!
# Bye,
# Thomas
#
# [1] Actually, I skipped dist/ipf (because it has a real lot of them,
# and I guess I'll try convincing the maintainer to fix them in his
# tree), the whole gnu, and all the config.guess's.
#
# --
# Thomas Klausner - wiz@danbala.tuwien.ac.at
# The secret of life is honesty and fair dealing. If you can fake that,
# you've got it made. -- Groucho Marx
#
--*greywolf;
--
*BSD: Write Once, Run Everywhere. Java Optional.