Natasha15030003 / pyfilesystem

Automatically exported from code.google.com/p/pyfilesystem
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Correct fs* command exit codes #176

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Try an invalid lists operation and print its exit code:

    fsls ftp://anon:oijsdf@ftp.mozilla.com; 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 p...@duedil.com on 6 May 2014 at 2:18

Attachments: