Dr. Werner Fink
2014-07-16 09:01:58 UTC
Hi,
with the following lines the ksh93u upto ksh93v- 2014-06-25 do hang:
dd if=/dev/zero of=testfile.txt bs=1 count=65537
x=`cat testfile.txt | cat -`
... it works with count=65536 and/or
x=$(cat testfile.txt | cat -)
but AFAIK the backticks are very common and also supported.
Btw: Even a Ctrl-C does *not* interrupt the running ksh:
noether:~ # strace -p 31289
Process 31289 attached - interrupt to quit
write(1, "\0", 1) = ? ERESTARTSYS (To be restarted)
--- {si_signo=SIGINT, si_code=SI_KERNEL, si_value={int=1060230178, ptr=0x7f943f31d422}} (Interrupt) ---
rt_sigreturn(0x7d6ef8) = -1 EINTR (Interrupted system call)
write(1, "\0", 1) = ? ERESTARTSYS (To be restarted)
Werner
--
"Having a smoking section in a restaurant is like having
a peeing section in a swimming pool." -- Edward Burr
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.research.att.com/pipermail/ast-developers/attachments/20140716/450f15b5/attachment.sig>
with the following lines the ksh93u upto ksh93v- 2014-06-25 do hang:
dd if=/dev/zero of=testfile.txt bs=1 count=65537
x=`cat testfile.txt | cat -`
... it works with count=65536 and/or
x=$(cat testfile.txt | cat -)
but AFAIK the backticks are very common and also supported.
Btw: Even a Ctrl-C does *not* interrupt the running ksh:
noether:~ # strace -p 31289
Process 31289 attached - interrupt to quit
write(1, "\0", 1) = ? ERESTARTSYS (To be restarted)
--- {si_signo=SIGINT, si_code=SI_KERNEL, si_value={int=1060230178, ptr=0x7f943f31d422}} (Interrupt) ---
rt_sigreturn(0x7d6ef8) = -1 EINTR (Interrupted system call)
write(1, "\0", 1) = ? ERESTARTSYS (To be restarted)
Werner
--
"Having a smoking section in a restaurant is like having
a peeing section in a swimming pool." -- Edward Burr
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.research.att.com/pipermail/ast-developers/attachments/20140716/450f15b5/attachment.sig>