* Really weird bug
@ 1996-07-12 0:25 Bart Schaefer
1996-07-12 8:32 ` Zefram
1996-07-12 11:49 ` Peter Stephenson
0 siblings, 2 replies; 4+ messages in thread
From: Bart Schaefer @ 1996-07-12 0:25 UTC (permalink / raw)
To: zsh-workers
Where the heck is the string "fg" coming from here?
zagzig<69> for p in %h
> do echo "$p"
> done
fg
%h
zagzig<70> for p in "%h"
> do echo "$p"
> done
%h
zagzig<71>
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.nbn.com/people/lantern
New male in /home/schaefer:
>N 2 Justin William Schaefer Sat May 11 03:43 53/4040 "Happy Birthday"
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Really weird bug
1996-07-12 0:25 Really weird bug Bart Schaefer
@ 1996-07-12 8:32 ` Zefram
1996-07-12 14:57 ` Bart Schaefer
1996-07-12 11:49 ` Peter Stephenson
1 sibling, 1 reply; 4+ messages in thread
From: Zefram @ 1996-07-12 8:32 UTC (permalink / raw)
To: schaefer; +Cc: zsh-workers
>zagzig<69> for p in %h
>> do echo "$p"
>> done
>fg
>%h
Compare with:
% disable fg
% %1
zsh: command not found: fg
A bare job specification gets rewritten with fg, so can't be executed
if fg is disabled. (()) math is similarly dependent on let. I think
this is a bug, but it's not easy to fix.
As for why this rewriting is being applied after in, this is obviously
a separate bug.
-zefram
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Really weird bug
1996-07-12 0:25 Really weird bug Bart Schaefer
1996-07-12 8:32 ` Zefram
@ 1996-07-12 11:49 ` Peter Stephenson
1 sibling, 0 replies; 4+ messages in thread
From: Peter Stephenson @ 1996-07-12 11:49 UTC (permalink / raw)
To: Zsh hackers list
schaefer@candle.brasslantern.com wrote:
> Where the heck is the string "fg" coming from here?
>
> zagzig<69> for p in %h
> > do echo "$p"
> > done
> fg
> %h
*** Src/exec.c.fg Thu Jul 11 14:41:32 1996
--- Src/exec.c Fri Jul 12 13:47:26 1996
***************
*** 1122,1128 ****
/* If the command begins with `%', then assume it is a *
* reference to a job in the job table. */
! if (nonempty(args) && *(char *)peekfirst(args) == '%') {
pushnode(args, dupstring((how & Z_DISOWN)
? "disown" : (how & Z_ASYNC) ? "bg" : "fg"));
how = Z_SYNC;
--- 1122,1128 ----
/* If the command begins with `%', then assume it is a *
* reference to a job in the job table. */
! if (type == SIMPLE && nonempty(args) && *(char *)peekfirst(args) == '%') {
pushnode(args, dupstring((how & Z_DISOWN)
? "disown" : (how & Z_ASYNC) ? "bg" : "fg"));
how = Z_SYNC;
--
Peter Stephenson <pws@ifh.de> Tel: +49 33762 77366
WWW: http://www.ifh.de/~pws/ Fax: +49 33762 77330
Deutches Electronen-Synchrotron --- Institut fuer Hochenergiephysik Zeuthen
DESY-IfH, 15735 Zeuthen, Germany.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Really weird bug
1996-07-12 8:32 ` Zefram
@ 1996-07-12 14:57 ` Bart Schaefer
0 siblings, 0 replies; 4+ messages in thread
From: Bart Schaefer @ 1996-07-12 14:57 UTC (permalink / raw)
To: Zefram, zsh-workers
On Jul 12, 9:32am, Zefram wrote:
} Subject: Re: Really weird bug
}
} A bare job specification gets rewritten with fg, so can't be executed
} if fg is disabled. (()) math is similarly dependent on let. I think
} this is a bug, but it's not easy to fix.
Recall my remarks of a couple of weeks ago about wanting a way to
access disabled reserved words? This is exactly the sort of place
where it would be useful -- zsh could use it internally for rewrites.
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.nbn.com/people/lantern
New male in /home/schaefer:
>N 2 Justin William Schaefer Sat May 11 03:43 53/4040 "Happy Birthday"
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1996-07-12 15:06 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-07-12 0:25 Really weird bug Bart Schaefer
1996-07-12 8:32 ` Zefram
1996-07-12 14:57 ` Bart Schaefer
1996-07-12 11:49 ` Peter Stephenson
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).