[bug #17456] shell commands broken

spiralvoice <[email protected]>
Newsgroups gmane.network.mldonkey.bugs
Message-ID <[email protected]>
Follow-up Comment #1, bug #17456 (project mldonkey):

I will only list results other than yours + explanations.
Also you found two bugs;-)

case 1:
allowed_commands = [
(df, df);
(ls, "ls incoming");]
allow_any_command = false

Output on my machine:
===========================================================
> ! ls
directories
files

---------------- Exited with code 0
===========================================================
! ls incoming
For arbitrary commands, you must set 'allowed_any_command'

- This output is correct, because of allow_any_command = false
you can only use commands which are on the left side in
allowed_commands list:

! ls

is not the same as

! ls incoming

When you call "! ls" MLDonkey looks into allowed_commands list,
finds "ls" and executes the associated command "ls incoming",
allowed_commands is not only a list of allowed commands, but
also a list of command shortcuts.
===========================================================
> ! mount
For arbitrary commands, you must set 'allowed_any_command'

- This works now with the patch attached to this bug report.

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?17456>

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.nongnu.org/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.