diff options
| author | Peter Stephenson <pws@zsh.org> | 2015-08-10 09:25:13 +0100 |
|---|---|---|
| committer | Peter Stephenson <pws@zsh.org> | 2015-08-10 09:25:13 +0100 |
| commit | ade35d3c2689da409fd23029b91fd1327d808291 (patch) | |
| tree | ff1501df10a29cdc832e5ee46d2cfde604938df5 /Doc | |
| parent | 36033: a few more queue_signals() to protect global state changes (diff) | |
| download | zsh-ade35d3c2689da409fd23029b91fd1327d808291.tar zsh-ade35d3c2689da409fd23029b91fd1327d808291.tar.gz zsh-ade35d3c2689da409fd23029b91fd1327d808291.tar.bz2 zsh-ade35d3c2689da409fd23029b91fd1327d808291.tar.lz zsh-ade35d3c2689da409fd23029b91fd1327d808291.tar.xz zsh-ade35d3c2689da409fd23029b91fd1327d808291.tar.zst zsh-ade35d3c2689da409fd23029b91fd1327d808291.zip | |
35885: document closing fd's opened with sysopen
Diffstat (limited to 'Doc')
| -rw-r--r-- | Doc/Zsh/mod_system.yo | 5 |
1 files changed, 5 insertions, 0 deletions
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( ))) |
