Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: grammar triviality with '&&'
- X-seq: zsh-workers 34651
- From: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- To: Zsh Hackers' List <zsh-workers@xxxxxxx>
- Subject: Re: grammar triviality with '&&'
- Date: Thu, 05 Mar 2015 09:46:55 +0000
- In-reply-to: <CAHYJk3QwN+DHpD3ZCMFjOeZ7Wq+krHzx7rTWBQG071PoYe_q=g@mail.gmail.com>
- 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
- Organization: Samsung Cambridge Solution Centre
- References: <54F33934.2070607@eastlink.ca> <13666281425228233@web7o.yandex.ru> <54F345D3.9010204@eastlink.ca> <D0509295-7DA9-4F18-9E3D-D50C0A756998@larryv.me> <20150302022754.GA7449@xvii.vinc17.org> <CABx2=D8efL3X2tfB+_+VweY2yye6EhaMNbJa3b3jJeVMp=7gaQ@mail.gmail.com> <20150302104619.GC6869@xvii.vinc17.org> <20150302110610.2e2c7e86@pwslap01u.europe.root.pri> <CAH+w=7YoHjN85hqOZVywOfYGZqvU74vZrbE84Ln+V2HQi-6nSA@mail.gmail.com> <20150304144756.GA27231@ypig.lip.ens-lyon.fr> <20150304151830.5e20d732@pwslap01u.europe.root.pri> <CAHYJk3QwN+DHpD3ZCMFjOeZ7Wq+krHzx7rTWBQG071PoYe_q=g@mail.gmail.com>
On Wed, 4 Mar 2015 23:05:44 +0100
Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
> > Now waiting for obscure failures elsewhere...
>
> All I have to do is press ctrl-c at a prompt, and it crashes:
It's amazing what you can do if you try.
It appears we have to avoid expanding null pointers.
One day, someone is going to have the delightful experience of writing
more interactive tests.
pws
diff --git a/Src/lex.c b/Src/lex.c
index a076614..494ea88 100644
--- a/Src/lex.c
+++ b/Src/lex.c
@@ -1735,6 +1735,9 @@ checkalias(void)
{
Alias an;
+ if (!zshlextext)
+ return 0;
+
if (!noaliases && isset(ALIASESOPT) &&
(!isset(POSIXALIASES) ||
!reswdtab->getnode(reswdtab, zshlextext))) {
Messages sorted by:
Reverse Date,
Date,
Thread,
Author