delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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 |
Message-ID: | <3F300570.7020209@pusspaws.net> |
Date: | Tue, 05 Aug 2003 20:28:48 +0100 |
From: | David Selby <cygwin AT pusspaws DOT net> |
Reply-To: | cygwin AT pusspaws DOT net |
User-Agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3.1) Gecko/20030425 |
X-Accept-Language: | en-us, en |
MIME-Version: | 1.0 |
To: | Cygwin list <cygwin AT cygwin DOT com> |
Subject: | bash $substitution in 2.05b.0-9 |
I have hit a problem with bash ... as a sample program I have ... #!/bin/sh test="123456789" temp=${test:1:2} echo $temp If I execute the above in debian woody bash 2.05a.0(1) I get 23 OK so far. I have cgywin on 98SE, with bash 2.05b.0-9. When I run the above I get ... :syntax error:bad substitution for the ... temp=${test:1:2} ... line Woody + cgywin are almost identical versions of bash, Apparently the above statement is valid in any bash >2.0, Any idea why the problem ? Dave -- 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 |