Hi,
I'm running into a funny behavior with bash. Do I report this as a bug?
------------------------------------
#!/usr/bin/bash
a=0;
echo "oneline" > line
cat line | while read var
do
a=1;
break
done
echo $a
------------------------------------
The o/p for above should be 1, but it's zero. Moreover modifying to
below still yields same result.
-----------------------------------
#!/usr/bin/bash
a=0;
echo "oneline" > line
cat line | while read var
do
a=1;export a;
break
done
echo $a
------------------------------------
The o/p remains 0 and not 1.
I'm on SX b75.
~Anil
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code