delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-2.6 required=5.0 tests=BAYES_00,SPF_HELO_PASS,SPF_PASS |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <24249272.post@talk.nabble.com> |
Date: | Mon, 29 Jun 2009 00:00:35 -0700 (PDT) |
From: | grvs <grvsinghal AT gmail DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Problem with single quotes |
MIME-Version: | 1.0 |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.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 |
Hi all I am new in cygwin as well as linux and I am trying to learn shell scripting I tried to write following script which doesn't give me appropriate result. x=3 y='[ $x -eq 10 ]' z='[ $x -lt 10 ]' echo x=&x y=$y z=$z and the output is: x=5 y=[ $x -eq 10 ] z=[ $x -lt 10 ] I expected x=5 y=0 z=1 or x=5 y=1 z=0 ( I am not sure till now that whether 0 is true or 1 is true) -- View this message in context: http://www.nabble.com/Problem-with-single-quotes-tp24249272p24249272.html Sent from the Cygwin list mailing list archive at Nabble.com. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |