zsh-workers
 help / color / mirror / code / Atom feed
* setopt autocontinue doesn't work
@ 2006-09-14 23:12 arno.
  2006-09-15 16:11 ` Peter Stephenson
  0 siblings, 1 reply; 3+ messages in thread
From: arno. @ 2006-09-14 23:12 UTC (permalink / raw)
  To: zsh-workers

[-- Attachment #1: Type: text/plain, Size: 738 bytes --]

Hi,
setopt autocontinue doesn't work

% setopt autocontinue   
% [[ -o autocontinue ]]
% print $?
1

That's because in function execcmd in file Src/exec.c, AUTOCONTINUE 
value is saved :
oautocont = opts[AUTOCONTINUE]; (l 1841)
command is executed, and autocontinue is then restored :
opts[AUTOCONTINUE] = oautocont; (l 2679)
It happens to for every command, even when command is : setopt 
autocontinue

so, assignement works well, at line, 2678, AUTOCONTINUE is set 
(isset(AUTOCONTINUE) returns true), but that results is erased.

What is the point of saving and restoring autocontinue in that function?

Is there a way not to restore autocontinue if command was setopt 
autocontinue ?

hope that helps

arno

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-09-15 18:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-14 23:12 setopt autocontinue doesn't work arno.
2006-09-15 16:11 ` Peter Stephenson
2006-09-15 18:55   ` Clint Adams

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).