Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
bug in single_command
- X-seq: zsh-workers 26550
- From: Richard Hartmann <richih.mailinglist@xxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxxxxx>
- Subject: bug in single_command
- Date: Wed, 11 Feb 2009 18:52:37 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=KrJcc0D9uf7mLFKYMMvE3bLKrhLCDLvuxxkTNAFwcy0=; b=I6oQiUCYIv7E7hB62PumQONFDPG877xPCkQqUgH2+QBHBmbSvr8ecv+WL874wUQ0Qb 0WyCYP801A6IfCdRDjbkkURa4GTsrffD29/0AHa1ZDe4yJLQawozVA+P/BpqqM3nsrc5 fQFYDTLTpBike4wf6LyhNfGl9I/lHejLhy1Qw=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=aVQPviw7EySlQvLlj/DY4mZn9xw5nwTsAb/mYX1dBjjVB9d+kHRM8PVyh+D7r79Sw+ OyU7MGsAWASEz86mcJ1f59jkI5i2YRR5756zw2eZ26LDljlxDAR/LNCJRqy7+/FmS8MO UXqJ3h50az2ufoPJK4KSHxVOUBOiwHYEp3yv8=
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
Quoting Doc/Zsh/options.yo for single_command:
The value of this option cannot be changed anywhere other than the command line.
My personal interpretation is that I can
setopt single_command
which is obviously not correct. The -t command line switch works as
expected. Thus I suggest the attached patch.
Also, wouldn't it make sense to move errors into dosetopt() so the error
messages could be more explicit about _why_ a setopt went wrong?
Richard
From 8eb5a7a88d94bffb3a5810f9a80e7d76d5f9d3a1 Mon Sep 17 00:00:00 2001
From: Richard Hartmann <richih@xxxxxxxxxxxxx>
Date: Wed, 11 Feb 2009 18:45:16 +0100
Subject: [PATCH] Make explanation of 'permanent' options explicit
---
Doc/Zsh/options.yo | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/Doc/Zsh/options.yo b/Doc/Zsh/options.yo
index 2cd02bf..b5ce813 100644
--- a/Doc/Zsh/options.yo
+++ b/Doc/Zsh/options.yo
@@ -1837,7 +1837,8 @@ the standard input is a tty and commands are
being read from standard input.
(See the discussion of tt(SHIN_STDIN).)
This heuristic may be overridden by specifying a state for this option
on the command line.
-The value of this option cannot be changed anywhere other than the
command line.
+The value of this option can only be changed with command line parameters.
+It cannot be changed once zsh is running.
)
pindex(LOGIN)
pindex(NO_LOGIN)
@@ -1891,8 +1892,8 @@ Note that setting or unsetting this option on
the command line does not
necessarily affect the state the option will have while the shell is
running - that is purely an indicator of whether on not commands are
em(actually) being read from standard input.
-The value of this option cannot be changed anywhere other
-than the command line.
+The value of this option can only be changed with command line parameters.
+It cannot be changed once zsh is running.
)
pindex(SINGLE_COMMAND)
pindex(NO_SINGLE_COMMAND)
@@ -1904,7 +1905,8 @@ item(tt(SINGLE_COMMAND) (tt(-t), ksh: tt(-t)))(
If the shell is reading from standard input, it exits after a single command
has been executed. This also makes the shell non-interactive, unless the
tt(INTERACTIVE) option is explicitly set on the command line.
-The value of this option cannot be changed anywhere other than the
command line.
+The value of this option can only be changed with command line parameters.
+It cannot be changed once zsh is running.
)
enditem()
--
1.5.6.5
From 8eb5a7a88d94bffb3a5810f9a80e7d76d5f9d3a1 Mon Sep 17 00:00:00 2001
From: Richard Hartmann <richih@xxxxxxxxxxxxx>
Date: Wed, 11 Feb 2009 18:45:16 +0100
Subject: [PATCH] Make explanation of 'permanent' options explicit
---
Doc/Zsh/options.yo | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/Doc/Zsh/options.yo b/Doc/Zsh/options.yo
index 2cd02bf..b5ce813 100644
--- a/Doc/Zsh/options.yo
+++ b/Doc/Zsh/options.yo
@@ -1837,7 +1837,8 @@ the standard input is a tty and commands are being read from standard input.
(See the discussion of tt(SHIN_STDIN).)
This heuristic may be overridden by specifying a state for this option
on the command line.
-The value of this option cannot be changed anywhere other than the command line.
+The value of this option can only be changed with command line parameters.
+It cannot be changed once zsh is running.
)
pindex(LOGIN)
pindex(NO_LOGIN)
@@ -1891,8 +1892,8 @@ Note that setting or unsetting this option on the command line does not
necessarily affect the state the option will have while the shell is
running - that is purely an indicator of whether on not commands are
em(actually) being read from standard input.
-The value of this option cannot be changed anywhere other
-than the command line.
+The value of this option can only be changed with command line parameters.
+It cannot be changed once zsh is running.
)
pindex(SINGLE_COMMAND)
pindex(NO_SINGLE_COMMAND)
@@ -1904,7 +1905,8 @@ item(tt(SINGLE_COMMAND) (tt(-t), ksh: tt(-t)))(
If the shell is reading from standard input, it exits after a single command
has been executed. This also makes the shell non-interactive, unless the
tt(INTERACTIVE) option is explicitly set on the command line.
-The value of this option cannot be changed anywhere other than the command line.
+The value of this option can only be changed with command line parameters.
+It cannot be changed once zsh is running.
)
enditem()
--
1.5.6.5
Messages sorted by:
Reverse Date,
Date,
Thread,
Author