From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4702 invoked from network); 25 Dec 2003 23:06:18 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 25 Dec 2003 23:06:18 -0000 Received: (qmail 4947 invoked by alias); 25 Dec 2003 23:05:58 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6963 Received: (qmail 4908 invoked from network); 25 Dec 2003 23:05:58 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 25 Dec 2003 23:05:58 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [80.91.224.249] by sunsite.dk (MessageWall 1.0.8) with SMTP; 25 Dec 2003 23:5:57 -0000 Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AZeYH-0003aX-00 for ; Fri, 26 Dec 2003 00:05:57 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: zsh-users@sunsite.dk Received: from sea.gmane.org ([80.91.224.252]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AZeYF-0003aK-00 for ; Fri, 26 Dec 2003 00:05:55 +0100 Received: from news by sea.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AZeYF-0004Tb-00 for ; Fri, 26 Dec 2003 00:05:55 +0100 From: zzapper Subject: Re: Writing zsh scripts on (CYGwin Date: Thu, 25 Dec 2003 23:05:54 +0000 Message-ID: <2tqmuv8cedtolroflmk3r9nn1r2jt26f10@4ax.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Newsreader: Forte Free Agent 1.93/32.576 English (American) Sender: news On Mon, 22 Dec 2003 18:25:24 +0000, zzapper wrote: >Hi, >I'm just trying my first zsh scripts. (in fact converting bash >scripts) > >However when I set the script to zsh rather than bash, I'm getting >errors on blank lines (amongst other things)' although written using >Vim in Unix mode. > >I guess zsh needs some flag set I was wrong my VIM editor was ending lines with Dos-Returns. When I used dos2unix my scripts ran fine. It would seem that unlike bash, zsh is sensitive to DOS returns. Is there an option to tell zsh to treat dos-returns as unix returns???? (Cygwin-zsh) zzapper (vim & cygwin & 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