zsh-workers
 help / color / mirror / code / Atom feed
From: Tim Rand <timrandg@gmail.com>
To: zsh-workers@zsh.org
Subject: zsh bug: parsing error when "dir" is used as a variable name in zsh shell scripts
Date: Sat, 26 Oct 2013 20:23:37 -0700	[thread overview]
Message-ID: <CALGds0rSf5gd6_BqYpsjjGncy2HKeCV__daa6DKuf3KVZsCiww@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 286 bytes --]

bash-3.2$ for dir in *
> do
> echo $dir
> done
0

% zsh --version
zsh 5.0.2 (x86_64-apple-darwin12.5.0)

% for dir in *
zsh: parse error near `-lSrah'

I noticed this because it causes ruby version manager (rvm) uses a similar
line.

Thank you in advance for considering the issue.
Tim

             reply	other threads:[~2013-10-27  3:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-27  3:23 Tim Rand [this message]
2013-10-27  5:44 ` Bart Schaefer

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=CALGds0rSf5gd6_BqYpsjjGncy2HKeCV__daa6DKuf3KVZsCiww@mail.gmail.com \
    --to=timrandg@gmail.com \
    --cc=zsh-workers@zsh.org \
    /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).