W
William Payne
Hello, I would like to know if EXIT_FAILURE/SUCCESS has the same value on
all platforms? I am writing a few scripts (I know shell scripts are
off-topic here) to test my C programs and they depend on looking at the
return values to know what to do. Since EXIT_FAILURE/SUCCESS are not
constants visible to the shell, I have to hard code their values in my shell
scripts. Say I move to another platform, but with the same shell, can I
still rely on my hard-coded values for EXIT_FAILURE/SUCCESS? If I cannot, I
guess I can work around it with a small helper program that informs the
shell of the values.
/ WP
all platforms? I am writing a few scripts (I know shell scripts are
off-topic here) to test my C programs and they depend on looking at the
return values to know what to do. Since EXIT_FAILURE/SUCCESS are not
constants visible to the shell, I have to hard code their values in my shell
scripts. Say I move to another platform, but with the same shell, can I
still rely on my hard-coded values for EXIT_FAILURE/SUCCESS? If I cannot, I
guess I can work around it with a small helper program that informs the
shell of the values.
/ WP