delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/04/06/08:41:50

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_82,SPF_HELO_PASS,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <22908018.post@talk.nabble.com>
Date: Mon, 6 Apr 2009 05:41:31 -0700 (PDT)
From: sudhap85 <sudhap AT techmahindra DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: "ls" command not working in windows 2008
In-Reply-To: <49D9F723.3010103@sbcglobal.net>
MIME-Version: 1.0
References: <22907575 DOT post AT talk DOT nabble DOT com> <49D9F723 DOT 3010103 AT sbcglobal DOT net>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

Yes this CMD.exe and $root is just a variable which holds a directory name
and it would expand as
(virusscanbase is a directory)
=E2=80=9Cls /tmp/virusScanBase >> resultfile=E2=80=9D


Greg Chicares-2 wrote:
>=20
> 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.
>> =E2=80=9Cls $root/virusScanBase >> $resultfile=E2=80=9D
>>=20
>> 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)
>=20
> What shell are you using? By "DOS command prompt", do you mean CMD.EXE?
> Or is this Cygwin's 'bash'?
>=20
> What output do you see from the following commands?
>   echo $root
>   echo %root%
>=20
> --
> 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/
>=20
>=20
>=20

--=20
View this message in context: http://www.nabble.com/%22ls%22-command--not-w=
orking-in-windows-2008-tp22907575p22908018.html
Sent from the Cygwin list mailing list archive at Nabble.com.


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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019