delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/05/28/00:37:06

From: dbe AT wgn DOT net ("$Bill Luebkert")
Subject: Re: Missing files stdio.h problems still......
28 May 1997 00:37:06 -0700 :
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <338BB214.566A.cygnus.gnu-win32@wgn.net>
References: <338B908B DOT 5D0B AT lx DOT net>
Reply-To: dbe AT wgn DOT net
Mime-Version: 1.0
X-Mailer: Mozilla 3.01Gold (Win95; U)
Original-To: jman AT lx DOT net
Original-CC: gnu-win32 AT cygnus DOT com
Original-Sender: owner-gnu-win32 AT cygnus DOT com

jman wrote:
> 
> I don't know if this is a bug. I have installed gnuwin32 correct I'm not
> new to this ;) but I am kinda new to unix. I don't consider myself a
> Unix guru for anything but I am learning. I worked on all the help I
> could get. I converted now my setup is text=binary not text!=binary I
> cleaned my registery boy did it need it. I also went converting files
> using these to commands to remove \r's from my files...
> :$ cat filename|tr -d \r >newfile;mv newfile filename
> 
> or to convert a whole directory you can do
> 
> :$ for file in *;do cat $file|tr -d \r>tmpname;mv tmpname;$file

I think like this is good:

for file in *; do cat $file | tr -d \r >tmpname; mv tmpname $file; done

> The first one works to remove 1 file at a time but the second don't...
> it just goes to
> >
> in bash an stay there...
> 
> Then I ran another program I don't know if this is a bug in stdio.h but
> this file is missing :(
> its included in stdio.h but it is not in sys\
> 
> /*
>  * <sys/eent.h> defines __sFILE, _fpos_t.
          ^
          reent.h
>  * They must be defined thee because stuct _eent needs them (and we
> don't
>  * want eent.h to include this file.
>  */
> 
> #include <sys/eent.h>
                ^
                reent.h
> 
> any help would be appreciated 1. how to convert my whole file system
> instead of 1 file at a time?
> and 2. Is this file missing on everyone's system... hehe did I
> accidently deleat it...

Looks like your /r got changed to / in stdio.h.

A little mis-type maybe? :)

You shouldn't need to convert the distribution files, just 
unpack them properly.  I used Winzip with no problems there.

As far as existing files you have a script above that should work.
You could precede it with a grep so only the bad files would be 
modified.

A Perl script would probably be better.  Walk the tree finding 
all files with ^M in them and make a dir array, then run a tr on 
just those files.

-- 
  ,-/-  __      _  _         $Bill Luebkert
 (_/   /  )    // //       DBE Collectibles
  / ) /--<  o // //      http://www.wgn.net/~dbe/
-/-' /___/_<_</_</_    Email: dbe AT wgn DOT net
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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