Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 57743 invoked from network); 4 Jan 2010 15:34:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 Jan 2010 15:34:17 -0000 Received: (qmail 77611 invoked by uid 500); 4 Jan 2010 15:34:17 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 77544 invoked by uid 500); 4 Jan 2010 15:34:17 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 77536 invoked by uid 99); 4 Jan 2010 15:34:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Jan 2010 15:34:17 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Jan 2010 15:34:15 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 5B7C929A0013 for ; Mon, 4 Jan 2010 07:33:54 -0800 (PST) Message-ID: <33442502.22361262619234373.JavaMail.jira@brutus.apache.org> Date: Mon, 4 Jan 2010 15:33:54 +0000 (UTC) From: "Bryan Pendleton (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-4500) CLASSPATH scripts should not exit on error In-Reply-To: <70787290.1262302949390.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-4500?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Bryan Pendleton updated DERBY-4500: ----------------------------------- Attachment: patch.diff Attached 'patch.diff' extends the change made by DERBY-4283 to setNetworkClientCP and setNetworkServerCP > CLASSPATH scripts should not exit on error > ------------------------------------------ > > Key: DERBY-4500 > URL: https://issues.apache.org/jira/browse/DERBY-4500 > Project: Derby > Issue Type: Bug > Components: Demos/Scripts > Affects Versions: 10.5.3.0 > Environment: Unix platforms. > Reporter: John Storta Jr. > Assignee: Bryan Pendleton > Priority: Minor > Attachments: patch.diff > > > This applies to the following > setEmbeddedCP > setNetworkServerCP > setNetworkClientCP > Bug DERBY-4283 references this issue, but only with regard to the setEmbeddedCP script. That bug also indicates the issue was resolved in 10.5.2, but I am looking at 10.5.3 and I still see the exit command in the script. > The proper way to use these CLASSPATH scripts is to source them rather than run them. > . $DERBY_HOME/bin/setNetworkServerCP > Doing so will run the script in the current shell. If the scripts issue an exit upon encountering an error, then the users shell will exit as well. > This is the relevant section of the scripts > if [ -z "$DERBY_HOME" ] ; then > echo "Error: DERBY_HOME is not set. Please set the DERBY_HOME environment variable" > echo "to the location of your Derby installation." > exit 1 #<<< fi > The scripts should generate a message if DERBY_HOME is not set, but should not issue an exit command. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.