www.delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=0.9 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS |
X-Spam-Check-By: | sourceware.org |
MIME-Version: | 1.0 |
Date: | Thu, 3 Dec 2009 02:12:48 +0100 |
Message-ID: | <846d84d90912021712j574b7749o9d9548203d21b901@mail.gmail.com> |
Subject: | bash script bugs |
From: | Sergey Ivanov <icegood1980 AT gmail DOT com> |
To: | Cygwin <cygwin AT cygwin DOT com> |
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 |
Have a script: #!/usr/bin/bash f="$(ls $1)" for v_file in "$f"; do echo $v_file done named FileGroupContentsChange.sh. Twos things do not work as they should. By order: 1) Output in command line for nest commands ls /cygdrive/d/install/buf/*.html dir /cygdrive/d/install/buf/*.html is same: /cygdrive/d/install/buf/a.html /cygdrive/d/install/buf/b.html while output for ./FileGroupContentsChange.sh /cygdrive/d/install/buf/*.html is only /cygdrive/d/install/buf/a.html 2) (not critical but not "classical") Both command line script and outputs for current folder in one line: ls returns FileGroupContentsChange.sh cygcheck.out sources and so ./FileGroupContentsChange.sh do -- 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 |