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 To: cygwin AT cygwin DOT com Subject: Problem with single quotes MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 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