From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8489 invoked by alias); 27 Oct 2013 05:45:03 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 31908 Received: (qmail 14211 invoked from network); 27 Oct 2013 05:44:57 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 From: Bart Schaefer Message-id: <131026224457.ZM27197@torch.brasslantern.com> Date: Sat, 26 Oct 2013 22:44:57 -0700 In-reply-to: Comments: In reply to Tim Rand "zsh bug: parsing error when "dir" is used as a variable name in zsh shell scripts" (Oct 26, 8:23pm) References: X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: Tim Rand , zsh-workers@zsh.org Subject: Re: zsh bug: parsing error when "dir" is used as a variable name in zsh shell scripts MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Oct 26, 8:23pm, Tim Rand wrote: } } % for dir in * } zsh: parse error near `-lSrah' You must have an alias for "dir" coming from somewhere. Furthermore you must have what's called a global alias for dir; probably it looks like alias -g dir="ls -lSrah" It's almost certainly the case that you don't want the "-g" in there. Note: torch% alias -g dir="ls -lSrah" torch% for dir in * zsh: parse error near `-lSrah' torch% alias dir="ls -lSrah" torch% for dir in * for>