From: Zoltan Hidvegi <hzoli@cs.elte.hu>
To: pws@ifh.de (Peter Stephenson)
Cc: zsh-workers@math.gatech.edu
Subject: Re: Various problems with 3.0.1-test1
Date: Tue, 10 Sep 1996 15:57:34 +0200 (MET DST) [thread overview]
Message-ID: <199609101357.PAA05991@bolyai.cs.elte.hu> (raw)
In-Reply-To: <199609101210.OAA23148@hydra.ifh.de> from Peter Stephenson at "Sep 10, 96 02:10:35 pm"
> 1)
>
> % ./zsh -fc 'shift 2; print $*' first second third fourth
> second third fourth fourth
The fix is included below. I broke it in 3.0.1-test. It worked in 3.0.0
but in 3.0.0 shift array did not work when KSH_ARRAYS was set.
> 2) This is very puzzling.
>
> % ./zsh -fc 'setopt extendedglob; [[ PATH = [A-Z]# ]] || print Failed.'
> Failed.
This is know and probably not a bug. extendedglob affects parsing and
parsing the -c argument is dode before anything is executed. Similarily
aliases do not work here.
./zsh -o extendedglob -fc '[[ PATH = [A-Z]# ]] || print Failed.'
works.
> 3) This is minor but probably wrong:
>
> % ./zsh -fc '1this_is_ignored=foo; print $1'
> foo
>
> ksh prints:
> ksh: 1this_is_ignored=foo: not found
It is probably trivial but I have no more time no (I would need some other
5 minutes for that).
Zoltan
*** Src/params.c 1996/09/07 15:19:40 2.37
--- Src/params.c 1996/09/10 13:49:02
***************
*** 964,972 ****
{
Value v;
! if (!((v = getvalue(&s, 0)) && PM_TYPE(v->pm->flags) == PM_ARRAY))
! return NULL;
! return v->pm->gets.afn(v->pm);
}
/**/
--- 964,973 ----
{
Value v;
! if (!idigit(*s) && (v = getvalue(&s, 0)) &&
! PM_TYPE(v->pm->flags) == PM_ARRAY)
! return v->pm->gets.afn(v->pm);
! return NULL;
}
/**/
next prev parent reply other threads:[~1996-09-10 14:30 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-09-10 12:10 Peter Stephenson
1996-09-10 13:57 ` Zoltan Hidvegi [this message]
1996-09-10 16:03 ` Peter Stephenson
1996-09-10 23:53 ` Zoltan Hidvegi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=199609101357.PAA05991@bolyai.cs.elte.hu \
--to=hzoli@cs.elte.hu \
--cc=pws@ifh.de \
--cc=zsh-workers@math.gatech.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).