by Robert Peirce <bob@[EMAIL PROTECTED]
>
Feb 8, 2008 at 04:53 PM
Okay. Here's a real puzzle and I don't think it has anything to do with
\r.
This doesn't work. It hangs at the if statement, which doesn't execute.
p=$(echo $line | tr -d '\r')
((++wkcnt))
if ((p>0))
This does work
p=$(echo $line | tr -d '\r')
((++wkcnt))
#
if ((p>0))
As does this
((++wkcnt))
p=$(echo $line | tr -d '\r')
if ((p>0))
You need something after ((++wkcnt)) for if to work and that makes no
sense to me at all.
--
Robert B. Peirce, Venetia, PA 724-941-6883
bob AT peirce-family.com [Mac]
rbp AT cooksonpeirce.com [Office]