Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

ksh93-like seek feature



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