zsh-workers
 help / color / mirror / code / Atom feed
From: "arno." <arno.@no-log.org>
To: zsh-workers@sunsite.dk
Subject: setopt autocontinue doesn't work
Date: Fri, 15 Sep 2006 01:12:05 +0200	[thread overview]
Message-ID: <20060914231205.GA10768@localhost.localdomain> (raw)

[-- 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 --]

             reply	other threads:[~2006-09-14 23:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-14 23:12 arno. [this message]
2006-09-15 16:11 ` Peter Stephenson
2006-09-15 18:55   ` Clint Adams

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=20060914231205.GA10768@localhost.localdomain \
    --to="arno."@no-log.org \
    --cc=zsh-workers@sunsite.dk \
    /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).