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 To: Cygwin Content-Type: text/plain; charset=ISO-8859-1 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 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