Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rm: raise error for long options #632

Merged
merged 1 commit into from
May 31, 2024
Merged

Commits on May 31, 2024

  1. rm: raise error for long options

    * I noticed that if I provide "long" options to rm, it gets confused and attempts to remove files starting with a dash
    * When debugging this, preprocess_options() was incorrectly deciding to save long options into new_args list; call usage() instead because this rm only supports single letter options
    
    %perl rm --this    # before patch
    rm: cannot remove '-t': No such file or directory
    rm: cannot remove '-h': No such file or directory
    rm: cannot remove '-i': No such file or directory
    rm: cannot remove '-s': No such file or directory
    mknos committed May 31, 2024
    Configuration menu
    Copy the full SHA
    fec1749 View commit details
    Browse the repository at this point in the history