wiki.techinc.nl/includes/shell
Max Semenik 36009e3ca7 Shell: skip null parameters
Right now they're treated as empty strings, however
this doesn't allow skipping parameters in the middle like
 $params = [
     'foo',
     $x ? '--bar' : null,
     '--baz',
 ];

In some cases this matters, e.g. `ls` works while `ls ''` doesn't.

Also, fix spacing problems the new tests uncovered:
* Extra space when using params()
* Missing space when combining params() and unsafeParams()

Change-Id: Icb29d4c48ae7f92fb5635e3865346c98f47abb01
2017-11-29 12:38:35 -08:00
..
Command.php Shell: skip null parameters 2017-11-29 12:38:35 -08:00
CommandFactory.php shell: Optionally restrict commands' access with firejail 2017-11-28 00:06:40 +00:00
firejail.profile shell: Optionally restrict commands' access with firejail 2017-11-28 00:06:40 +00:00
FirejailCommand.php shell: Optionally restrict commands' access with firejail 2017-11-28 00:06:40 +00:00
limit.sh Get rid of $IP in Command 2017-10-06 19:50:45 -07:00
Result.php Return stderr from Shell\Command 2017-10-12 02:12:20 -07:00
Shell.php Shell: skip null parameters 2017-11-29 12:38:35 -08:00