Details
-
Bug
-
Status: Resolved
-
Low
-
Resolution: Fixed
-
None
-
Python 2.7.1 on Mac OSX
-
Low
Description
Not sure how I got it, but I ended up with an empty .cqlsh_history file. In that state, when starting cqlsh, you end up with:
bone@zen:~/dev/boneill42/cassandra-> bin/cqlsh
Traceback (most recent call last):
File "bin/cqlsh", line 2588, in <module>
main(*read_options(sys.argv[1:], os.environ))
File "bin/cqlsh", line 2543, in main
readline.read_history_file(HISTORY)
IOError: [Errno 22] Invalid argument
Its a simple fix to check for a non-empty history file. I'll attach the patch.