pyfilesystem
pyfilesystem copied to clipboard
Correct fs* command exit codes
Try an invalid lists operation and print its exit code:
fsls ftp://anon:[email protected]; echo $?
fsls will print an error and we expect the exit code to be 1, but the exit code
is 0. This is because the wrapper scripts in fs/commands (the files without the
.py extension) don't pass the return value to sys.exit. Instead of using
setuptools' setup's "scripts" argument we can use "entry_points" and get rid of
the need for those scripts altogether.
Patch attached
Original issue reported on code.google.com by [email protected] on 6 May 2014 at 2:18
Attachments: