db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bryan Pendleton (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (DERBY-4283) setEmbeddedCP should not exit on error
Date Sat, 17 Oct 2009 14:51:31 GMT

     [ https://issues.apache.org/jira/browse/DERBY-4283?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Bryan Pendleton resolved DERBY-4283.
------------------------------------

       Resolution: Fixed
    Fix Version/s: 10.6.0.0

Thank you Susumu Ishizuka for the suggestion, and thanks Dag for the review and testing.

The change seemed to work as expected in my Red Hat Linux environment as well 
(see below), so I committed it to the subversion trunk as revision 826263.

-bash-2.05b$ ./bin/setEmbeddedCP
Error: DERBY_HOME is not set. Please set the DERBY_HOME environment variable
to the location of your Derby installation.
./bin/setEmbeddedCP: line 23: return: can only `return' from a function or sourced script
-bash-2.05b$ echo $?
0
-bash-2.05b$ . ./bin/setEmbeddedCP
Error: DERBY_HOME is not set. Please set the DERBY_HOME environment variable
to the location of your Derby installation.
-bash-2.05b$ echo $?
1
-bash-2.05b$ DERBY_HOME=/home/bpendleton/downloads/derby/db-derby-10.1.1.0-bin/lib . bin/setEmbeddedCP
-bash-2.05b$ echo $?
0
-bash-2.05b$ echo $CLASSPATH
/home/bpendleton/downloads/derby/db-derby-10.1.1.0-bin/lib/lib/derby.jar:/home/bpendleton/downloads/derby/db-derby-10.1.1.0-bin/lib/lib/derbytools.jar:


> setEmbeddedCP should not exit on error
> --------------------------------------
>
>                 Key: DERBY-4283
>                 URL: https://issues.apache.org/jira/browse/DERBY-4283
>             Project: Derby
>          Issue Type: Bug
>          Components: Demos/Scripts
>    Affects Versions: 10.5.1.1
>         Environment: cygwin on windows (bash)
>            Reporter: Susumu Ishizuka
>            Priority: Minor
>             Fix For: 10.6.0.0
>
>
> setEmbeddedCP should use 'return' instead of 'exit' if DERBY_HOME was not set.
> Because this script will be sourced from a shell, use of exit will terminate the calling
shell.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message