delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <4949855.post@talk.nabble.com> |
Date: | Mon, 19 Jun 2006 23:23:49 -0700 (PDT) |
From: | prz <Guy DOT Przytula AT riziv DOT fgov DOT be> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: variable |
In-Reply-To: | <4933240.post@talk.nabble.com> |
MIME-Version: | 1.0 |
X-Nabble-Sender: | Guy DOT Przytula AT riziv DOT fgov DOT be |
X-Nabble-From: | prz <Guy DOT Przytula AT riziv DOT fgov DOT be> |
References: | <4933240 DOT post AT talk DOT nabble DOT com> |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
thanks for the update a simple testcase tempdba:/cygdrive/c/workdir:echo $OBJECT tempdba:/cygdrive/c/workdir:. ./testcase -a dt print object dt tempdba:/cygdrive/c/workdir:. ./testcase -a dt print object dt tempdba:/cygdrive/c/workdir:. ./testcase -a dl print object dt tempdba:/cygdrive/c/workdir:echo $OBJECT dt the code : #!/bin/bash while getopts "a:" option; do case "$option" in a) OBJECT=$OPTARG ;; *) exit esac done case "$OBJECT" in dt) echo "print object $OBJECT" ;; dl) echo "print object $OBJECT" ;; *) usage esac #exit Thanks for all info/help Best Regards, Guy Przytula -- View this message in context: http://www.nabble.com/variable-t1810207.html#a4949855 Sent from the Cygwin Users forum at Nabble.com. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |