Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
zsh bug: parsing error when "dir" is used as a variable name in zsh shell scripts
- X-seq: zsh-workers 31907
- From: Tim Rand <timrandg@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- 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
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=ASoLTCcM2Jn+KyCX0lOcNftiZNnCybUt6HWXf8Unb3k=; b=QnDr4jxd0K1S8IemVFeGPdNnusrGhYRsaf34OMCYPNw5vRFbayDirhsxf31mXEFWLz w9jq256ti65GLZf+3tBMrAG58DVkX8TRTYJBa+lUn/3NQYOJ4RFBehHb3xKPOqquWlc7 pnrpBNGIkKO7EH5Uz6KuNSU2Tdsym/E9UkS/l8fGIQXfyPghV1qHnTWXAYqfIZZNDmGm hsc2CL33ra4gW87A+M82+LJlwEPMBWVOitB1SbyU9LELBA91dAfRYN9Knxyq6K8HQjv3 CEwAlHtr5KQmr5s01C3Lg/cJK3k223KbhZew3XuH3dhBjWUd5KTAXAMeTQKCqxa+IlBJ M7IA==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author