Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <4112F5AE.7000003@isonews2.com> Date: Thu, 05 Aug 2004 23:06:22 -0400 From: Arturus Magi Reply-To: sailorleo AT isonews2 DOT com User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040616 Mnenhy/0.6.0.104 MIME-Version: 1.0 To: cygwin AT cygwin DOT com CC: "Povolotsky, Alexander" , crossgcc AT sources DOT redhat DOT com Subject: Re: problems with configuring ksh (pdksh) in Cygwin and following problems with Linux cross-compilation there References: <313680C9A886D511A06000204840E1CF08F430AC AT whq-msgusr-02 DOT pit DOT comms DOT marconi DOT com> In-Reply-To: X-Enigmail-Version: 0.84.2.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.43 X-Apparently-From: NHogue AT aol DOT com X-AOL-IP: 205.188.118.18 X-IsSubscribed: yes Igor Pechtchanski wrote: {building of pdksh, modifying cygwin.bat} >>: not foundrofile[2]: >>: not foundrofile[8]: >>: not foundrofile[11]: >>: not foundrofile[14]: >>: not foundrofile[17]: >>: not foundrofile[20]: >>: not foundrofile[23]: >>: not foundrofile[26]: >>: not foundrofile[30]: >>: not foundrofile[36]: >>ksh: /etc/profile[63]: syntax error: `done' unexpected > > > Hmm, this is weird. Do you have the default /etc/profile (as installed by > the 'base-files' package), or did you customize yours? > > >>$ ps -l >> PID PPID PGID WINPID TTY UID STIME COMMAND >> 3852 1 3852 3852 con 91693 04:37:11 /usr/bin/ksh >> 164 3852 164 2436 con 91693 04:37:22 /usr/bin/ps >> >>What do I need to do to get rid of ": not foundrofile" errors ? > > > I suspect that the errors are actually '.......rofile[23]:^M:not found' > (the ^M, or CR, is doing a carriage return). It's possible that a > bash-ism got into the default /etc/profile, or it may be a text/binary > error. I'll check it out if I can reproduce it. > > 9:1 that the text is 'ksh: /etc/profile[xx]: \n: not found', which does sound like a lineend problem. I ran into this once, when I modified /etc/profile with a text editor that didn't understand Unix newlines without paying attention. Assuming that this is the cause, and that /etc is mounted binary, dos2unix should fix it. -- 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/