public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* bash problems: with cp with a for loop
@ 1997-10-15 15:59 John Cook
  0 siblings, 0 replies; 3+ messages in thread
From: John Cook @ 1997-10-15 15:59 UTC (permalink / raw)
  To: 'gnuwin32'

Hi.

The following works with bash 1.14.0(5) under SCO but 
not with bash-1.14.7(5) under gnuwin32 (i.e., the bash 
that came with b18).  

  for fname in `ls`
  do cp $fname /tmp; done

I get an error such as the following for each filename 
`ls` spits out:

  cp: Acr99.tmp: No such file or directory

Can anyone tell me what I'm doing wrong or if this is a 
known problem with gnuwin32 bash?

--John
(novice shell programmer, trying to escape from CMD.EXE)
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: bash problems: with cp with a for loop
@ 1997-10-16  4:37 Earnie Boyd
  0 siblings, 0 replies; 3+ messages in thread
From: Earnie Boyd @ 1997-10-16  4:37 UTC (permalink / raw)
  To: john.cook; +Cc: gnu-win32

Let me point you to:

ftp://ftp.cygnus.com/pub/gnu-win32/latest/

http://www.cygnus.com/pubs/gnupro/

http://www.cygnus.com/misc/gnu-win32/

http://www.cygnus.com/ml/gnu-win32

-        \\||//
---o0O0--Earnie--0O0o----
-earnie_boyd@hotmail.com-
------ooo0O--O0ooo-------


>From: John Cook <john.cook@kla-tencor.com>
>To: "'gnuwin32'" <gnu-win32@cygnus.com>
>Subject: bash problems: with cp with a for loop
>Date: Wed, 15 Oct 1997 15:54:47 -0700
>
>
>Hi.
>
>The following works with bash 1.14.0(5) under SCO but 
>not with bash-1.14.7(5) under gnuwin32 (i.e., the bash 
>that came with b18).  
>
>  for fname in `ls`
>  do cp $fname /tmp; done
>
>I get an error such as the following for each filename 
>`ls` spits out:
>
>  cp: Acr99.tmp: No such file or directory
>
>Can anyone tell me what I'm doing wrong or if this is a 
>known problem with gnuwin32 bash?
>
>--John
>(novice shell programmer, trying to escape from CMD.EXE)
>-
>For help on using this list (especially unsubscribing), send a message 
to
>"gnu-win32-request@cygnus.com" with one line of text: "help".
>


______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: bash problems: with cp with a for loop
@ 1997-10-15 16:39 John Cook
  0 siblings, 0 replies; 3+ messages in thread
From: John Cook @ 1997-10-15 16:39 UTC (permalink / raw)
  To: 'gnuwin32'

OK, I found my own problem.  I had this alias in .bashrc:

  alias ls='ls -F --color'

which I have since changed to 

  alias ls='ls -F --color=auto'

and now everything is much better.  Sorry to bother everyone...

--John

>----------
>From: 	John Cook
>Sent: 	Wednesday, October 15, 1997 3:58 PM
>To: 	'gnuwin32'
>Subject: 	bash problems: with cp with a for loop
>
>
>Hi.
>
>The following works with bash 1.14.0(5) under SCO but 
>not with bash-1.14.7(5) under gnuwin32 (i.e., the bash 
>that came with b18).  
>
>  for fname in `ls`
>  do cp $fname /tmp; done
>
>I get an error such as the following for each filename 
>`ls` spits out:
>
>  cp: Acr99.tmp: No such file or directory
>
>Can anyone tell me what I'm doing wrong or if this is a 
>known problem with gnuwin32 bash?
>
>--John
>(novice shell programmer, trying to escape from CMD.EXE)
>
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1997-10-16  4:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-10-15 15:59 bash problems: with cp with a for loop John Cook
1997-10-15 16:39 John Cook
1997-10-16  4:37 Earnie Boyd

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).