Austin Group Bug Tracker via austin-group-l at The Open Group wrote in
 <65860f060c56ec1e88a8a2201e3a6...@austingroupbugs.net>:
 |
 |A NOTE has been added to this issue. 
 |====================================================================== 
 |https://austingroupbugs.net/view.php?id=1852 
 ...
 |Summary:                    Clarify "$@[:$@:]" (with $# -eq 0)
 ...
 | (0006870) hvd (reporter) - 2024-09-02 15:55
 | https://austingroupbugs.net/view.php?id=1852#c6870 

When responding to this i get

  Forbidden

  You don't have permission to access this resource.

  Additionally, a 403 Forbidden error was encountered while trying to use an 
ErrorDocument to handle the request.

I wanted to say what follows, but it is not that important anyway:

hvd@: if you want to have a quote mechanism, you should
open an issue.  On the list kre@ has shown how a POSIX
shell can already today do that a couple of years ago:

<pre>
# Though slower use a subshell version instead of properly restoring $IFS
# and flags, as elder shells may not be able to properly restore flags via
# "set +o" as later standardized in POSIX, and it seems overkill to handle
# all possible forms of output "set +o" may or may not actually generate.
quote__rndtrip() (
        case "$1" in
        *\'*) ;;
        *) printf "'%s'" "$1"; return 0;;
        esac
        a="$1" s= e=
        while case "$a" in
                \'*) a=${a#?}; s="${s}\\\\'";;
                *\') a=${a%?}; e="${e}\\\\'";;
                '') printf "${s}${e}"; exit 0;;
                *) false;;
                esac
        do
                continue
        done
        IFS=\'
        set -f
        set -- $a
        r="${1}"
        shift
        for a
        do
                r="${r}'\\''${a}"
        done
        printf "${s}'%s'${e}" "${r}"
        exit 0
)

quote_rndtrip() (
        j=
        for i
        do
                [ -n "$j" ] && printf ' '
                j=' '
                quote__rndtrip "$i"
        done
)

quote_string() (
        j=
        for i
        do
                [ -n "$j" ] && printf '\\ '
                j=' '
                quote__rndtrip "$i"
        done
)
</pre>

And Andrew Josey asked me in private whether there was
progress on that issue, and regarding dash in
particular i answered for one "Xu of dash for example
often is away for many months", and also "dash
explicitly goes for POSIX compliance, for example, and
the next release will ship with $'', interactivity for
stdin+stderr (not stdout), and more fixes / extensions
to *be* compliant", and i think it will be true here,
too.

--steffen
|
|Der Kragenbaer,                The moon bear,
|der holt sich munter           he cheerfully and one by one
|einen nach dem anderen runter  wa.ks himself off
|(By Robert Gernhardt)

  • [1003.1(2024... Austin Group Bug Tracker via austin-group-l at The Open Group
    • [1003.1... Austin Group Bug Tracker via austin-group-l at The Open Group
    • [1003.1... Austin Group Bug Tracker via austin-group-l at The Open Group
    • [1003.1... Austin Group Bug Tracker via austin-group-l at The Open Group
    • [1003.1... Austin Group Bug Tracker via austin-group-l at The Open Group
    • [1003.1... Austin Group Bug Tracker via austin-group-l at The Open Group
    • [1003.1... Austin Group Bug Tracker via austin-group-l at The Open Group
      • Re:... Steffen Nurpmeso via austin-group-l at The Open Group
        • ... Harald van Dijk via austin-group-l at The Open Group
          • ... Steffen Nurpmeso via austin-group-l at The Open Group
            • ... Harald van Dijk via austin-group-l at The Open Group
              • ... Steffen Nurpmeso via austin-group-l at The Open Group
    • [1003.1... Austin Group Bug Tracker via austin-group-l at The Open Group
      • Re:... Steffen Nurpmeso via austin-group-l at The Open Group
        • ... Martijn Dekker via austin-group-l at The Open Group
          • ... Steffen Nurpmeso via austin-group-l at The Open Group
          • ... Harald van Dijk via austin-group-l at The Open Group
            • ... Steffen Nurpmeso via austin-group-l at The Open Group

Reply via email to