X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 	tests=AWL,BAYES_00,J_CHICKENPOX_82
X-Spam-Check-By: sourceware.org
Message-ID: <49D9F723.3010103@sbcglobal.net>
Date: Mon, 06 Apr 2009 12:35:47 +0000
From: Greg Chicares <gchicares@sbcglobal.net>
User-Agent: Thunderbird 2.0.0.21 (Windows/20090302)
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: "ls" command  not working in windows 2008
References: <22907575.post@talk.nabble.com>
In-Reply-To: <22907575.post@talk.nabble.com>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On 2009-04-06 12:14Z, sudhap85 wrote:
> I tried to list the contents of a directory in DOS command prompt and
> redirecting it to a file.This did not add the contents at all.
> “ls $root/virusScanBase >> $resultfile”
> 
> As an alternative to this I tried to use
> "echo $root/virusScanBase/*" but this just returns * and not the directory
> contents(in Linux it works as expected by listing direcory contents)

What shell are you using? By "DOS command prompt", do you mean CMD.EXE?
Or is this Cygwin's 'bash'?

What output do you see from the following commands?
  echo $root
  echo %root%

--
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/

