Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Writing zsh scripts on (CYGwin
- X-seq: zsh-users 6963
- From: zzapper <david@xxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Writing zsh scripts on (CYGwin
- Date: Thu, 25 Dec 2003 23:05:54 +0000
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <muceuvs2hhuohvsd5fsthkma62aj069kmc@xxxxxxx>
- Sender: news <news@xxxxxxxxxxxxx>
On Mon, 22 Dec 2003 18:25:24 +0000, zzapper <david@xxxxxxxxxx> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author