sawyl: (Default)
[personal profile] sawyl
The following works under genuine AT&T Korn shell, but fails under pdksh:

v=0
echo 1 | while read p
do
v=1
done
echo $v

I'd attribute this to the usual ksh lossage if wasn't for the fact that bash does the same thing. Could it be that it's AT&T in the wrong and pdksh in the right? That'd be a first.

Profile

sawyl: (Default)
sawyl

August 2018

S M T W T F S
   123 4
5 6 7 8910 11
12131415161718
192021222324 25
262728293031 

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Feb. 7th, 2026 11:41 am
Powered by Dreamwidth Studios