From: earnie_boyd AT hotmail DOT com (Earnie Boyd) Subject: Re: mysterious bash problem 17 Jan 1998 12:25:12 -0800 Message-ID: <19980115190222.10906.qmail.cygnus.gnu-win32@hotmail.com> Content-Type: text/plain To: Ulrich DOT Lauther AT mchp DOT siemens DOT de Cc: gnu-win32 AT cygnus DOT com >From: Ulrich Lauther >Subject: Re: mysterious bash problem >To: earnie_boyd AT hotmail DOT com (Earnie Boyd) >Date: Thu, 15 Jan 1998 16:46:02 +0100 (MET) >Reply-To: Ulrich DOT Lauther AT mchp DOT siemens DOT de > >> >> Now that I've learned a bit of history, thanks to Fergus Henderson, my >> best guess is that the file contains line terminators of \r\n. One host >> runs the file because it's mounts are text!=binary. The other doesn't >> because it's mounts are text=binary. >> >I run it under Unix through dos2unix and it didn't change its size, so I guess >there can't be any \r's. >I didn't do anything abouts mounts on either host, just installed stock >B18 on both. >If I insert "#! /bin/sh" as first line, it works. That solves my problem but not >my curiosity. >How do I inspect mounting? Is there a /etc/mtab ? (I am not currently at that >host). Just simply execute the mount command without any parameters. The mount table is stored in the registry so if your experienced with regedit then you could look at it that way. If you look at the help from mount beware that the -b switch is the only one that works properly. The -m switch has be deactivated and the --reset, well it works, but you won't like the results. Speculating again, knowing that you haven't modified anything then you are most likely setup for text!=binary which means that the \r is expected. Your file probably worked on the other host because the method of transferring the file to the diskette added the \r to the file. Also the editor you are using may be modifying the line terminators. As a test try your dos2unix program again on the modified file and see if it still functions. According to Fergus Henderson and Guy Gascoigne - Piggford the script should have worked with your : at the top. If your not on the list check the archives for their responses. - \\||// ---o0O0--Earnie--0O0o---- -earnie_boyd AT hotmail DOT com- ------ooo0O--O0ooo------- Check out these great gnu-win32 related sites: ftp://ftp.cygnus.com/pub/gnu-win32/latest/ (ftp site) http://www.cygnus.com/pubs/gnupro/ (Comercial Page) http://www.cygnus.com/misc/gnu-win32/ (Project Page) http://www.cygnus.com/ml/gnu-win32 (Mail Archives) http://www.itribe.net/virtunix/winhelp-man-pages/ (HTML Man Pages) http://www.lexa.ru/sos (Sergey Okhapkin) ftp://www.lexa.ru/pub/domestic/sos/ (Sergey's ftp site) http://www.fu.is.saga-u.ac.jp/~colin/gcc.html (Colin Peters) http://www.xraylith.wisc.edu/~khan/software/gnu-win32/ (Mumit Khan) http://gnu-win32.paranoia.ru (Chuck Bogorad's ports) ftp://ftp.deninc.com/pub (Den Internet Services - US mirror and ports) ______________________________________________________ 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 AT cygnus DOT com" with one line of text: "help".