about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Stephenson <pws@zsh.org>2015-08-10 09:25:13 +0100
committerPeter Stephenson <pws@zsh.org>2015-08-10 09:25:13 +0100
commitade35d3c2689da409fd23029b91fd1327d808291 (patch)
treeff1501df10a29cdc832e5ee46d2cfde604938df5
parentdf5f825538720a9422859200d58d075d1dd075fc (diff)
downloadzsh-ade35d3c2689da409fd23029b91fd1327d808291.tar.gz
zsh-ade35d3c2689da409fd23029b91fd1327d808291.tar.xz
zsh-ade35d3c2689da409fd23029b91fd1327d808291.zip
35885: document closing fd's opened with sysopen
-rw-r--r--ChangeLog5
-rw-r--r--Doc/Zsh/mod_system.yo5
2 files changed, 10 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 37043e679..ee5945f56 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2015-08-10  Peter Stephenson  <p.stephenson@samsung.com>
+
+	* 35885: Doc/Zsh/mod_system.zo: document how to close
+	fd's opened with sysopen.
+
 2015-08-09  Barton E. Schaefer  <schaefer@zsh.org>
 
 	* 36033: Src/glob.c, Src/pattern.c: a few more queue_signals()
diff --git a/Doc/Zsh/mod_system.yo b/Doc/Zsh/mod_system.yo
index 5feb7dd99..7f2009b43 100644
--- a/Doc/Zsh/mod_system.yo
+++ b/Doc/Zsh/mod_system.yo
@@ -68,6 +68,11 @@ item(tt(trunc))(
 truncate file to size 0
 )
 enditem()
+
+To close the file, use one of the following:
+
+example(tt(exec {)var(fd)tt(}<&-)
+tt(exec {)var(fd)tt(}>&-))
 )
 findex(sysread)
 redef(SPACES)(0)(tt(ifztexi(NOTRANS(@ @ @ @ @ @ @ @ ))ifnztexi(        )))