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 To: cygwin AT cygwin DOT com Subject: Re: variable In-Reply-To: <4933240.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-Sender: Guy DOT Przytula AT riziv DOT fgov DOT be X-Nabble-From: prz 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 Precedence: bulk List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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/