diff --git a/src/uu/ls/src/ls.rs b/src/uu/ls/src/ls.rs index 41d2f59b131..708632ddcd7 100644 --- a/src/uu/ls/src/ls.rs +++ b/src/uu/ls/src/ls.rs @@ -1595,7 +1595,7 @@ pub fn uu_app() -> Command { .long(options::INDICATOR_STYLE) .help( "Append indicator with style WORD to entry names: \ - none (default), slash (-p), file-type (--file-type), classify (-F)", + none (default), slash (-p), file-type (--file-type), classify (-F)", ) .value_parser(["none", "slash", "file-type", "classify"]) .overrides_with_all([ diff --git a/util/build-gnu.sh b/util/build-gnu.sh index 697c8c53795..7d19bd1d7f0 100755 --- a/util/build-gnu.sh +++ b/util/build-gnu.sh @@ -265,6 +265,9 @@ sed -i -E "s|^([^#]*2_31.*)$|#\1|g" tests/printf/printf-cov.pl sed -i -e "s/du: invalid -t argument/du: invalid --threshold argument/" -e "s/du: option requires an argument/error: a value is required for '--threshold ' but none was supplied/" -e "/Try 'du --help' for more information./d" tests/du/threshold.sh +# clap returns 2 when rejecting a value +sed -i -e "s|returns_ 1 ls |returns_ 2 ls |g" tests/ls/classify.sh + # with ls --dired, in case of error, we have a slightly different error position sed -i -e "s|44 45|48 49|" tests/ls/stat-failed.sh