Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: exim: dev

[Bug 1193] description of valid "bool" operator input excludes empty string

 

 

exim dev RSS feed   Index | Next | Previous | View Threaded


pdp at exim

Jan 2, 2012, 11:44 PM

Post #1 of 2 (295 views)
Permalink
[Bug 1193] description of valid "bool" operator input excludes empty string

------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=1193

Phil Pennock <pdp [at] exim> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED




--- Comment #1 from Phil Pennock <pdp [at] exim> 2012-01-03 07:44:08 ---
Oops, thanks, good catch.

Fixed in commit 8ebb1c9ea93eb27500756a578640d890b53264d3.


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email

--
## List details at https://lists.exim.org/mailman/listinfo/exim-dev Exim details at http://www.exim.org/ ##


git at exim

Jan 3, 2012, 12:17 AM

Post #2 of 2 (284 views)
Permalink
[Bug 1193] description of valid "bool" operator input excludes empty string [In reply to]

------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=1193

Git Commit <git [at] exim> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |git [at] exim




--- Comment #2 from Git Commit <git [at] exim> 2012-01-03 08:17:05 ---
Git commit:
http://git.exim.org/exim.git/commitdiff/8ebb1c9ea93eb27500756a578640d890b53264d3

commit 8ebb1c9ea93eb27500756a578640d890b53264d3
Author: Phil Pennock <pdp [at] exim>
AuthorDate: Tue Jan 3 02:41:57 2012 -0500
Commit: Phil Pennock <pdp [at] exim>
CommitDate: Tue Jan 3 02:41:57 2012 -0500

bool{} is false for empty strings

fixes bug 1193
reported by Jasen Betts.
---
doc/doc-docbook/spec.xfpt | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/doc/doc-docbook/spec.xfpt b/doc/doc-docbook/spec.xfpt
index 951cd52..12d8137 100644
--- a/doc/doc-docbook/spec.xfpt
+++ b/doc/doc-docbook/spec.xfpt
@@ -9871,7 +9871,10 @@ zero.
This condition turns a string holding a true or false representation into
a boolean state. It parses &"true"&, &"false"&, &"yes"& and &"no"&
(case-insensitively); also positive integer numbers map to true if non-zero,
-false if zero. Leading and trailing whitespace is ignored.
+false if zero.
+An empty string is treated as false.
+Leading and trailing whitespace is ignored;
+thus a string consisting only of whitespace is false.
All other string values will result in expansion failure.

When combined with ACL variables, this expansion condition will let you


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email

--
## List details at https://lists.exim.org/mailman/listinfo/exim-dev Exim details at http://www.exim.org/ ##

exim dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.