ghantoos / lshell

lshell is a shell coded in Python, that lets you restrict a user's environment to limited sets of commands, choose to enable/disable any command over SSH (e.g. SCP, SFTP, rsync, etc.), log user's commands, implement timing restriction, and more.
GNU General Public License v3.0
436 stars 112 forks source link

Exit code not working when using separators #86

Closed ghantoos closed 10 years ago

ghantoos commented 10 years ago

Detected via unittests:

======================================================================
FAIL: 16 - test exit codes
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/lshell/test/test_functional.py", line 202, in test_16_exitcode
    self.assertEqual(expected, result)
AssertionError: '2' != 'None'

----------------------------------------------------------------------
ghantoos commented 10 years ago

This occurs when using separators in the same line, e.g.: ls idonotexist; echo $?