1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-01 05:16:05 +01:00

35885: document closing fd's opened with sysopen

This commit is contained in:
Peter Stephenson 2015-08-10 09:25:13 +01:00
parent df5f825538
commit ade35d3c26
2 changed files with 10 additions and 0 deletions

View file

@ -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()

View file

@ -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( )))