From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3453 invoked from network); 30 Mar 2004 07:35:38 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 30 Mar 2004 07:35:38 -0000 Received: (qmail 16567 invoked by alias); 30 Mar 2004 07:35:18 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7300 Received: (qmail 16556 invoked from network); 30 Mar 2004 07:35:18 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 30 Mar 2004 07:35:18 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [130.225.247.86] by sunsite.dk (MessageWall 1.0.8) with SMTP; 30 Mar 2004 7:35:17 -0000 Received: (qmail 3941 invoked from network); 30 Mar 2004 07:35:17 -0000 Received: from main.gmane.org (80.91.224.249) by a.mx.sunsite.dk with SMTP; 30 Mar 2004 07:35:16 -0000 Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1B8DmE-0003pj-00 for ; Tue, 30 Mar 2004 09:35:14 +0200 Received: from cpc3-oxfd4-4-0-cust194.oxfd.cable.ntl.com ([80.3.247.194]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 30 Mar 2004 09:35:14 +0200 Received: from david by cpc3-oxfd4-4-0-cust194.oxfd.cable.ntl.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 30 Mar 2004 09:35:14 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: zsh-users@sunsite.dk From: zzapper Subject: Re: zsh and line breaks Date: Tue, 30 Mar 2004 08:35:06 +0100 Message-ID: References: <1vvf60l9i7n4nlobcroik2le5ofe6v2rn4@4ax.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: cpc3-oxfd4-4-0-cust194.oxfd.cable.ntl.com X-Newsreader: Forte Free Agent 1.93/32.576 English (American) Sender: news Cc: cygwin@cygwin.com X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: * X-Spam-Status: No, hits=1.5 required=6.0 tests=RCVD_IN_SORBS autolearn=no version=2.63 X-Spam-Hits: 1.5 On Mon, 29 Mar 2004 14:46:15 -0800 (PST), wrote: >On Mon, 29 Mar 2004, zzapper wrote: > >> On Wed, 24 Mar 2004 18:16:00 +0100, wrote: >> >> >I'm having some trouble with zsh (4.0.6) and line breaks. It seems that >> >it does not accept "\n" as a line break. This results in some >> >uncomfortableness when using it as a login shell, such as this output >> >from Emacs: >> > >> >[bkhl@ackusativ ~/kurser/vt04/lp1/lab1]% latex \\nonstopmode\\input rapport.tex >> >latex \\nonstopmode\\input rapport.tex\n >> > >> >Apparently, zsh is not interpreting \n as EOL. >> > >> >Is there some setting that might fix this? >> >> I run zsh on Cygwin, unlike bash zsh gets very upset if it sees dos >> returns. I have to run dos2unix on my zsh scripts. >> One thing, are you running your scripts off of a text or binary mount filesystem? And, are you running in DOS or Unix mode? I'll need to know which combinations don't work. > Where fred has a few empty lines and an echo "hello" fred.sh fred fred.sh:2: command not found: ^M fred.sh:3: command not found: ^M fred.sh:4: command not found: ^M fred fred.sh:5: command not found: ^M >mount C:\cygwin\usr\X11R6\lib\X11\fonts on /usr/X11R6/lib/X11/fonts type system (binmode) C:\Cygwin\bin on /usr/bin type system (binmode) C:\Cygwin\lib on /usr/lib type system (binmode) C:\Cygwin on / type system (binmode) type user (binmode) c: on /c type user (binmode) zzapper (vim, cygwin, wiki & zsh) -- vim -c ":%s/^/WhfgTNabgureRIvzSUnpxre/|:%s/[R-T]/ /Ig|:normal ggVGg?" http://www.vim.org/tips/tip.php?tip_id=305 Best of Vim Tips