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
437 stars 111 forks source link

Wrong behaviour of && #39

Closed hostingnuggets closed 11 years ago

hostingnuggets commented 11 years ago

Hello,

The '&&' shell command connector does not have the correct behaviour in lshell. For example:

ls inexstantfile && echo "file exists"

the second command (echo) after the AND should NOT get run if command 1 (ls) returns an return code different from 0.

Unfortunately under lshell command 2 does get run no matter what is the return code from command 1.

Is it possible to fix this?

Thanks & best regards, H.N.

hostingnuggets commented 11 years ago

any news on this issue?

hostingnuggets commented 11 years ago

does anyone have time to look at this bug? cheers!

ghantoos commented 11 years ago

Thanks for reporting this issue. And sorry for the late response.

Cheers

hostingnuggets commented 11 years ago

No problem, thanks for fixing, was really looking forward to that!