Use -r switch for 'read' so that double-escaping isn't necessary anymore.

Fix a bug in numeric comparison.