zsh-users
 help / color / mirror / code / Atom feed
From: Nikolai Weibull <mailing-lists.zsh-users@rawuncut.elitemail.org>
To: zsh-users@sunsite.dk
Subject: Re: Vim syntax file for zsh
Date: Sat, 11 Dec 2004 21:02:42 +0100	[thread overview]
Message-ID: <20041211200242.GA9581@puritan.pcp.ath.cx> (raw)
In-Reply-To: <20041211161259.GA4537@sc>

* Stephane Chazelas <Stephane_Chazelas@yahoo.fr> [Dec 11, 2004 17:30]:
> > 	% echo hi[
> > 	zsh: bad pattern: hi[
> > 	% [ -n "$1" ]
> > 	%
> > 
> > Quoting the first makes sense if you want to echo the string "hi[".
> > Quoting the [ in [ -n "$1" ] makes no sense at all.
> > Or am I misunderstanding something?
> Yes, you're right, I had not made the test myself as I expected
> it to work the same as in any other shell.

> echo foo[

> works OK in every shell but zsh.

	% setopt nobadpattern
	% echo hi[
	hi[

> If you've got a command named foo[, though, 

> foo[ bar

> doesn't work with ksh or bash (because, they take it as the
> start of an array subscript assignment). It's OK with pdksh,
> though.

Yeah, [ is heavily overloaded ;-),
	nikolai

-- 
::: name: Nikolai Weibull    :: aliases: pcp / lone-star / aka :::
::: born: Chicago, IL USA    :: loc atm: Gothenburg, Sweden    :::
::: page: www.pcppopper.org  :: fun atm: gf,lps,ruby,lisp,war3 :::
main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}


  reply	other threads:[~2004-12-11 20:04 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-01  7:40 Felix Rosencrantz
2004-12-01  8:43 ` Danek Duvall
2004-12-01 12:02 ` Nikolai Weibull
2004-12-03  8:02   ` Felix Rosencrantz
2004-12-04 15:54     ` Clint Adams
2004-12-04 16:42       ` Nikolai Weibull
2004-12-04 17:00         ` OT: vim maintainer [Re: Vim syntax file for zsh] Clint Adams
2004-12-04 22:04           ` Nikolai Weibull
2004-12-04 16:42     ` Vim syntax file for zsh Nikolai Weibull
2004-12-08  8:13       ` Felix Rosencrantz
2004-12-08 13:47         ` Nikolai Weibull
2004-12-08 18:14           ` Nikolai Weibull
2004-12-09 13:59             ` lists
2004-12-09 14:45               ` Nikolai Weibull
2004-12-09 16:36                 ` Felix Rosencrantz
2004-12-09 18:18                   ` Nikolai Weibull
2004-12-09 18:23                     ` Nikolai Weibull
2004-12-09 20:09                       ` Wayne Davison
2004-12-09 21:24                         ` Nikolai Weibull
2004-12-09 22:43                           ` Wayne Davison
2004-12-09 23:26                             ` Nikolai Weibull
2004-12-12  4:41                               ` Felix Rosencrantz
2004-12-12 13:34                                 ` Nikolai Weibull
2004-12-12 16:40                                   ` Felix Rosencrantz
2004-12-12 20:10                                     ` Nikolai Weibull
2004-12-13  3:41                                   ` Doug Kearns
2004-12-10  8:13                           ` Stephane Chazelas
2004-12-10 15:27                             ` Nikolai Weibull
2004-12-10 15:46                               ` Stephane Chazelas
2004-12-11 13:24                                 ` Nikolai Weibull
2004-12-11 16:13                                   ` Stephane Chazelas
2004-12-11 20:02                                     ` Nikolai Weibull [this message]
2004-12-08 13:15       ` Doug Kearns
2004-12-01 15:32 ` Ziggy

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=20041211200242.GA9581@puritan.pcp.ath.cx \
    --to=mailing-lists.zsh-users@rawuncut.elitemail.org \
    --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).