On Sat, 29 Mar 2025 16:53:11 -0500, Jay Maynard \ wrote:

>They left -0 out of xargs?! REALLY, IBM? Merciful $DEITY. That, coupled
>with find -print0, solve a great big pile of issues and security holes.
> 
There's an alternative for POSIX shells:
<https://pubs.opengroup.org/onlinepubs/9799919799/utilities/V3_chap02.html#tag_19_02_04>
    2.2.4 Dollar-Single-Quotes
    A sequence of characters starting with a <dollar-sign> immediately followed
    by a single-quote ($') shall preserve the literal value of all characters 
up to
    an unescaped terminating single-quote ('), with the exception of certain
    <backslash>-escape sequences, as follows:
    ...
    \xXX yields the byte whose value is the hexadecimal value XX (one or more
        hexadecimal digits). If more than two hexadecimal digits follow \x, the 
results are unspecified.
    \ddd yields the byte whose value is the octal value ddd (one to three octal 
digits).

o One could write a filter to transform find -print0 output to this format.
o This is useful for shell commands, not for executable programs.
o I find nothing similar in OMVS doc.  But that's so badly organized that I 
could
  easily have missed it.  Us it there?
o I hate EBCDIC!

-- 
gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to