about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Stephenson <p.w.stephenson@ntlworld.com>2014-09-04 20:23:22 +0100
committerPeter Stephenson <p.w.stephenson@ntlworld.com>2014-09-04 20:23:22 +0100
commit3518783680573a19bb54aa29c6d5a9359fbcc791 (patch)
tree7fc96c58dc51a900e732ca258f766fb6e7edadff
parented8602ee3f7f7082503e6f8fa71853199e61db31 (diff)
downloadzsh-3518783680573a19bb54aa29c6d5a9359fbcc791.tar.gz
zsh-3518783680573a19bb54aa29c6d5a9359fbcc791.tar.xz
zsh-3518783680573a19bb54aa29c6d5a9359fbcc791.zip
33110: document use of $IFS[0] for variable padding
-rw-r--r--ChangeLog5
-rw-r--r--Doc/Zsh/expn.yo4
2 files changed, 9 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 74a3a8a80..bc241dc0a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-09-04  Peter Stephenson  <p.w.stephenson@ntlworld.com>
+
+	* 33110: Doc/Zsh/expn.yo: document use of $IFS[1] for variable
+	padding.
+
 2014-09-04  Peter Stephenson  <p.stephenson@samsung.com>
 
 	* Alexandre Rames: 33108: Completion/Unix/Command/_stgit:
diff --git a/Doc/Zsh/expn.yo b/Doc/Zsh/expn.yo
index d01d804d2..b4aa9c715 100644
--- a/Doc/Zsh/expn.yo
+++ b/Doc/Zsh/expn.yo
@@ -1155,6 +1155,10 @@ var(string1) and var(string2) are given, tt(string2) is inserted once
 directly to the left of each word, truncated if necessary, before
 var(string1) is used to produce any remaining padding.
 
+If either of var(string1) or tt(string2) is present but empty,
+i.e. there are two delimiters together at that point, the first
+character of tt($IFS) is used instead.
+
 If the tt(MULTIBYTE) option is in effect, the flag tt(m) may also
 be given, in which case widths will be used for the calculation of
 padding; otherwise individual multibyte characters are treated as occupying