Menu

Argument list too long

Help
Zeniff
2014-06-24
2016-02-23
  • Zeniff

    Zeniff - 2014-06-24

    Hi~ Maybe this is more of a bug report, but I have a suggestion for informing the user when they try to move too many files.

    If the user selects a large number of files and clicks on the Move (or Copy or Delete) button, nothing will happen and no error message is given.

    To test limit (I tried both versions 0.84 and 0.85):

    mkdir -v /tmp/test-em{1,2}
    touch /tmp/test-em1/{0000..9999}
    

    Then try to move all the files from /tmp/test-em1/ to /tmp/test-em2/

    Some output from "eaglemode -dlog":

    emView 0x8277648: SVP="ctrl"
    emView 0x8277648: Active="ctrl"
    emView 0x8277648: Active="ctrl:context:commands:4"
    emView 0x824ac40: Active="main:content view"
    Can't exec "/opt/eaglemode/bin/emShowStdDlg": Argument list too long at /opt/eaglemode/res/emFileMan/scripts/cmd-util.pl line 253.
    

    I think the error is a combination of the number of files and file-/path-name lengths. If the pathnames of the files are short, you can move a lot of the files, but with longer pathnames, the limit is lower.

    I can move 6237 of the files from /tmp/test-em1/ to /tmp/test-em2/.
    If I rename any of those in the selection to a longer name, then the limit becomes less than 6237. So, the pathname length affects the limit. I hope it makes sense...

    Anyway, I think it would be good if the user is given some pop-up message as is the case for other minor errors.

    Thanks for reading and have a great day~:)

     
  • Oliver Hamann

    Oliver Hamann - 2014-06-24

    Thanks for the report!

    I'll try to fix it for the next release.

    Have a great day too!

     
  • Aphrodite Agency

    This is still a problem for me

     

Log in to post a comment.