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

Have proper Lexer/Parser #87

Open xlr-8 opened 9 years ago

xlr-8 commented 9 years ago

Hi,

Regarding issues https://github.com/ghantoos/lshell/issues/67 & https://github.com/ghantoos/lshell/issues/86 I thought it could be good to integrate a more linux-like lexer/parser (with BNF and stuff), to avoid those small & painful issues.

Some relevant links - reading before bed: http://pubs.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html http://www.teicm.gr/icd/staff/nikolaid/learning_the_bash_shell.pdf [page 327 and more]

Keep up the good work!