#1379 Menu.. unexpected results

1.110
closed
5
2003-11-21
2003-11-21
No

I am trying to create a script that uses the Menu.. command to list
the directories in a directory. I have used various forms of ls -Q
--single-column, etc. and have even tried -b (use escape
character before space) and still can't get Menu.. to list the
directories which often will contain more than 1 word in the
directory name. Since as:
This is a test
In the options file that I have menu pointing to I have had the
following attempts:
"This is a test"
This\ is\ a\ test
This is a test

All of these end up dropping the first word (using that as the
actuall $name substitution instead of the whole thing). I can see
how this is useful, but it would be nice to have it detect a " and
use anything within the "" as the actual string. Perhaps even
having Webmin remove the "" so the "Quote Parameter" option
would effect it correctly. I guess another and perhaps better
option would be to have the system simply recognize escape
characters?

Thanks.

Discussion

  • Jamie Cameron

    Jamie Cameron - 2003-11-21
    • status: open --> closed
     
  • Jamie Cameron

    Jamie Cameron - 2003-11-21

    Updated Custom Commands module

     
    Attachments
  • Jamie Cameron

    Jamie Cameron - 2003-11-21

    Logged In: YES
    user_id=129364

    The next version of Webmin will support quoting, so you will be able to
    enter a line like
    "/path/to some/directory"
    or even
    "foo bar" "description for foo bar"

    In fact, I have attached an updated module with this feature to this bug
    report ..

     
  • Jason Pfingstmann

    Logged In: YES
    user_id=392684

    Thanks, it worked like charm. :)

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks