Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
ksh93-like seek feature
- X-seq: zsh-workers 34462
- From: Vincent Lefevre <vincent@xxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: ksh93-like seek feature
- Date: Thu, 5 Feb 2015 00:00:19 +0100
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mail-followup-to: zsh-workers@xxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
With ksh93, it is possible to seek:
#!/bin/ksh93
rm -f tmpfile
exec 3<> tmpfile
echo foo >&3
exec 3>#((0))
cat <&3
rm -f tmpfile
which outputs "foo". Could such a feature be added to zsh?
--
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author