Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: help with parse error



On Apr 7,  7:09pm, Timothy J Luoma wrote:
} Subject: help with parse error
}
} function> for i in "$*"
} function for> do
} function for> if [ -r "$i" ]
} function for if> then
} function for then> else
} function for else> fi
} function for else> done
              ^^^^^
	      Note, zsh thinks you're still in the "else" clause!

} zsh: parse error near `done'
} 
} I'm sure it's obvious.... but I've been looking at it and it makes no sense  
} to me...

Check to see whether you have aliased "fi" to something else.  That's the
only thing I know of that can cause this behavior.

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com



Messages sorted by: Reverse Date, Date, Thread, Author