This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]