-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 06/06/2010 02:47:38, Dan Nelson wrote:
>> flag_count=`expr $flag_count + 1`
> /bin/sh can do math on its own:
>
> flag_count=$((flag_count+1))
flag_count=$(( $flag_count + 1 ))
surely? Needs to dereference the variable inside the arithmetic expansion.
Cheers,
Matthew
- --
Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard
Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
JID: [email protected] Kent, CT11 9PW
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkwLSaIACgkQ8Mjk52CukIzQvQCfUnjDCkQ1Xk18MiENPTBhEKlA
PIgAnivZn/n+vJVXYFZnpOcrJ0/6voQV
=kZtj
-----END PGP SIGNATURE-----
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[email protected]"