Galen O'Sullivan created GEODE-2510:
---------------------------------------
Summary: GFSH exits with status 0 when running a command fails
Key: GEODE-2510
URL: https://issues.apache.org/jira/browse/GEODE-2510
Project: Geode
Issue Type: Bug
Components: gfsh
Reporter: Galen O'Sullivan
If a command parameter is missing or the command fails, the exit status of gfsh
is 0:
{code}
$ gfsh ru
Invalid command or option : ru.
Use gfsh help to display additional information.
$ echo $?
1
$ # that's good.
$ gfsh run
Parameter "file" is required. Use "help <command name>" for assistance.
$ echo $?
0
$ # this seems wrong to me.
{code}
If a GFSH command fails, the program should return an abnormal exit status.
Otherwise it's hard to reliably script with gfsh.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)