Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
syntax error despite abort [Was: simplify and if then else]
- X-seq: zsh-users 13286
- From: "Mikael Magnusson" <mikachu@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: syntax error despite abort [Was: simplify and if then else]
- Date: Wed, 24 Sep 2008 14:00:17 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=SKa27uSky4oibT5MtuZNdG4sFI5gqI/6fnmDvDeUt+0=; b=MxlPlxd2sK/0yEQcF5Ne710+WYNszqVDjcVDZI2AhBKSX9AInnNHBPZsy7SGKD3QvR 9+3UYOHwhxZQXZ+s/A5KZpVSh2LxFMmgEvcivELQN5EaCM//2P6tqP3trhBa3msRuKB8 vhcxlsv8zdJhfaRz7NgBH0KeJ+DAOHJt8kcq0=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=baGwubaHs8sVOTZY+ijMysrkbxNixk1KFVtunlGaLuXjxGpV+lH0qOs9fVPQieOmBa zAwfWqk4RnZhgyfSrKfSBFGocqrlipN5Dkt/RNFjxTHdQjqBkCNqUNEXTkOgC2iIIyb2 5nZgpGxd7eewMRdGRbeZ/N6vuRCp+FQwveSJs=
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
2008/9/24 Mikael Magnusson <mikachu@xxxxxxxxx>:
> A bit longer but arguably still simpler :)
> cd /$([[ "$LOGNAME" != davidr ]] && echo o || echo c)/inetpub/wwdev/blabla
I wanted to try if you could use anonymous functions somehow to shorten
it a bit (probably not), but I encountered this
% function foo() { } hello syntax error
zsh: correct 'hello' to 'bell' [nyae]? a
zsh: parse error near `hello'
%
There is probably some explanation for why this is so, like there is for why
I have to use my mouse to cut and paste when there's a syntax error involving
some internal keywords, but maybe it's a simple bug that can be fixed? (hah)
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author