From: zzapper <david@tvis.co.uk>
To: zsh-users@sunsite.dk
Subject: Re: Writing zsh scripts on (CYGwin
Date: Thu, 25 Dec 2003 23:05:54 +0000 [thread overview]
Message-ID: <2tqmuv8cedtolroflmk3r9nn1r2jt26f10@4ax.com> (raw)
In-Reply-To: <muceuvs2hhuohvsd5fsthkma62aj069kmc@4ax.com>
On Mon, 22 Dec 2003 18:25:24 +0000, zzapper <david@tvis.co.uk> 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
prev parent reply other threads:[~2003-12-25 23:06 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-12-22 18:25 zzapper
2003-12-25 23:05 ` zzapper [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2tqmuv8cedtolroflmk3r9nn1r2jt26f10@4ax.com \
--to=david@tvis.co.uk \
--cc=zsh-users@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).