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

echo: remove non-standard -? #417

Merged
merged 1 commit into from
Jan 25, 2024
Merged

Commits on Jan 25, 2024

  1. echo: remove non-standard -?

    * Sometimes echo is built into the shell
    * Standards document for echo doesn't mention the -? flag [1]
    * Versions of echo that I tested don't support it
    * I think it's better to follow convention
    * Sync pod and fix a typo in DESCRIPTION
    
    1. https://pubs.opengroup.org/onlinepubs/009604599/utilities/echo.html
    
    # bash builtin
    % builtin echo $BASH_VERSION
    5.1.4(1)-release
    % builtin echo -?
    -?
    % builtin echo --version
    --version
    
    # gnu echo
    % /bin/echo -?
    -?
    % /bin/echo --version
    echo (GNU coreutils) 8.32
    
    # pdksh builtin
    % builtin echo -?
    -?
    % builtin echo --version
    --version
    % builtin echo $KSH_VERSION
    @(#)PD KSH v5.2.14 99/07/13.2
    
    # openbsd echo
    % /bin/echo -?
    -?
    % /bin/echo --version
    --version
    mknos authored Jan 25, 2024
    Configuration menu
    Copy the full SHA
    5181f2c View commit details
    Browse the repository at this point in the history