* Writing zsh scripts on (CYGwin
@ 2003-12-22 18:25 zzapper
2003-12-25 23:05 ` zzapper
0 siblings, 1 reply; 2+ messages in thread
From: zzapper @ 2003-12-22 18:25 UTC (permalink / raw)
To: zsh-users
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
zsh 4.1.1 (i686-pc-cygwin)
Please don't tell me to RTFM as I'm too early in the learning curve to
find my way round the zsh help yet (tho' please let me where I schould
have looked)
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Writing zsh scripts on (CYGwin
2003-12-22 18:25 Writing zsh scripts on (CYGwin zzapper
@ 2003-12-25 23:05 ` zzapper
0 siblings, 0 replies; 2+ messages in thread
From: zzapper @ 2003-12-25 23:05 UTC (permalink / raw)
To: zsh-users
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-12-25 23:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-22 18:25 Writing zsh scripts on (CYGwin zzapper
2003-12-25 23:05 ` zzapper
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).