The following issue has been SUBMITTED. 
====================================================================== 
https://austingroupbugs.net/view.php?id=1759 
====================================================================== 
Reported By:                larryv
Assigned To:                
====================================================================== 
Project:                    Online Pubs
Issue ID:                   1759
Category:                   Rationale
Type:                       Error
Severity:                   Editorial
Priority:                   normal
Status:                     New
Name:                       Lawrence Velázquez 
Organization:                
User Reference:              
URL:                       
https://pubs.opengroup.org/onlinepubs/9699919799/xrat/V4_xcu_chap02.html 
Section:                    C.2 
====================================================================== 
Date Submitted:             2023-07-17 16:09 UTC
Last Modified:              2023-07-17 16:09 UTC
====================================================================== 
Summary:                    line breaks missing in "Shell Command Language" code
examples
Description: 
Like in https://austingroupbugs.net/view.php?id=180 and
https://austingroupbugs.net/view.php?id=1758, some code examples in XRAT section
C.2
("Shell Command Language") are missing line breaks in the online
publication.
Desired Action: 
In section C.2.5.2, change:<blockquote><pre>set "abc" "def ghi" "jkl"
unset novar
IFS=' ' # a space
printf '%s\n' $*
<b>abc
def
ghi
jkl</b>printf '%s\n' "$*"
<b>abc def ghi jkl</b>printf '%s\n' xx$*yy
<b>xxabc
def
ghi
jklyy</b>printf '%s\n' "xx$*yy"
<b>xxabc def ghi jklyy</b>printf '%s\n' $@
<b>abc
def
ghi
jkl</b>printf '%s\n' "$@"
<b>abc
def ghi
jkl</b>printf '%s\n' ${1+"$@"}
<b>abc
def ghi
jkl</b>printf '%s\n' ${novar-"$@"}
<b>abc
def ghi
jkl</b>printf '%s\n' xx$@yy
<b>xxabc
def
ghi
jklyy</b>printf '%s\n' "xx$@yy"
<b>xxabc
def ghi
jklyy</b>printf '%s\n' $@$@
<b>abc
def
ghi
jklabc
def
ghi
jkl</b>printf '%s\n' "$@$@"
<b>abc
def ghi
jklabc
def ghi
jkl</b>IFS=':'
printf '%s\n' "$*"
<b>abc:def ghi:jkl</b>var=$*; printf '%s\n' "$var"
<b>abc:def ghi:jkl</b>var="$*"; printf '%s\n' "$var"
<b>abc:def ghi:jkl</b>unset var
printf '%s\n' ${var-$*}
<b>abc
def ghi
jkl</b>printf '%s\n' "${var-$*}"
<b>abc:def ghi:jkl</b>printf '%s\n' ${var-"$*"}
<b>abc:def ghi:jkl</b>printf '%s\n' ${var=$*}
<b>abc
def ghi
jkl</b>printf 'var=%s\n' "$var"
<b>var=abc:def ghi:jkl</b>unset var
printf '%s\n' "${var=$*}"
<b>abc:def ghi:jkl</b>printf 'var=%s\n' "$var"
<b>var=abc:def ghi:jkl</b>

IFS=" # null
printf '%s\n' "$*"
<b>abcdef ghijkl</b>var=$*; printf '%s\n' "$var"
<b>abcdef ghijkl</b>var="$*"; printf '%s\n' "$var"
<b>abcdef ghijkl</b>unset var
printf '%s\n' ${var-$*}
<b>abcdef ghijkl</b>printf '%s\n' "${var-$*}"
<b>abcdef ghijkl</b>printf '%s\n' ${var-"$*"}
<b>abcdef ghijkl</b>printf '%s\n' ${var=$*}
<b>abcdef ghijkl</b>printf 'var=%s\n' "$var"
<b>var=abcdef ghijkl</b>unset var
printf '%s\n' "${var=$*}"
<b>abcdef ghijkl</b>printf 'var=%s\n' "$var"
<b>var=abcdef ghijkl</b>printf '%s\n' "$@"
<b>abc
def ghi
jkl</b>

unset IFS
printf '%s\n' "$*"
<b>abc def ghi jkl</b>var=$*; printf '%s\n' "$var"
<b>abc def ghi jkl</b>var="$*"; printf '%s\n' "$var"
<b>abc def ghi jkl</b>unset var
printf '%s\n' ${var-$*}
<b>abc
def
ghi
jkl</b>printf '%s\n' "${var-$*}"
<b>abc def ghi jkl</b>printf '%s\n' ${var-"$*"}
<b>abc def ghi jkl</b>printf '%s\n' ${var=$*}
<b>abc
def
ghi
jkl</b>printf 'var=%s\n' "$var"
<b>var=abc def ghi jkl</b>unset var
printf '%s\n' "${var=$*}"
<b>abc def ghi jkl</b>printf 'var=%s\n' "$var"
<b>var=abc def ghi jkl</b>printf '%s\n' "$@"
<b>abc
def ghi
jkl</b>

set one "" three
printf '[%s]\n' $*
<b>[one]
[]</b> (<i>this line of output is optional</i>)<b>[three]</b>printf
'[%s]\n' $@
<b>[one]
[]</b> (<i>this line of output is optional</i>)<b>[three]</b>

set --
printf '[%s]\n' foo "$*"
<b>[foo]
[]</b>printf '[%s]\n' foo "$novar$*$(echo)"
<b>[foo]
[]</b>printf '[%s]\n' foo $@
<b>[foo]</b>printf '[%s]\n' foo "$@"
<b>[foo]</b>printf '[%s]\n' foo ''$@
<b>[foo]
[]</b>printf '[%s]\n' foo ''"$@"
<b>[foo]
[]</b>printf '[%s]\n' foo "$novar$@$(echo)"
<b>[foo]
[]</b> (<i>this line of output is optional</i>)printf '[%s]\n' foo
''"$novar$@$(echo)"
<b>[foo]
[]</b></pre></blockquote>to:<blockquote><pre>set "abc" "def ghi" "jkl"
unset novar
IFS=' ' # a space
printf '%s\n' $*
<b>abc
def
ghi
jkl</b>
printf '%s\n' "$*"
<b>abc def ghi jkl</b>
printf '%s\n' xx$*yy
<b>xxabc
def
ghi
jklyy</b>
printf '%s\n' "xx$*yy"
<b>xxabc def ghi jklyy</b>
printf '%s\n' $@
<b>abc
def
ghi
jkl</b>
printf '%s\n' "$@"
<b>abc
def ghi
jkl</b>
printf '%s\n' ${1+"$@"}
<b>abc
def ghi
jkl</b>
printf '%s\n' ${novar-"$@"}
<b>abc
def ghi
jkl</b>
printf '%s\n' xx$@yy
<b>xxabc
def
ghi
jklyy</b>
printf '%s\n' "xx$@yy"
<b>xxabc
def ghi
jklyy</b>
printf '%s\n' $@$@
<b>abc
def
ghi
jklabc
def
ghi
jkl</b>
printf '%s\n' "$@$@"
<b>abc
def ghi
jklabc
def ghi
jkl</b>
IFS=':'
printf '%s\n' "$*"
<b>abc:def ghi:jkl</b>
var=$*; printf '%s\n' "$var"
<b>abc:def ghi:jkl</b>
var="$*"; printf '%s\n' "$var"
<b>abc:def ghi:jkl</b>
unset var
printf '%s\n' ${var-$*}
<b>abc
def ghi
jkl</b>
printf '%s\n' "${var-$*}"
<b>abc:def ghi:jkl</b>
printf '%s\n' ${var-"$*"}
<b>abc:def ghi:jkl</b>
printf '%s\n' ${var=$*}
<b>abc
def ghi
jkl</b>
printf 'var=%s\n' "$var"
<b>var=abc:def ghi:jkl</b>
unset var
printf '%s\n' "${var=$*}"
<b>abc:def ghi:jkl</b>
printf 'var=%s\n' "$var"
<b>var=abc:def ghi:jkl</b>

IFS=" # null
printf '%s\n' "$*"
<b>abcdef ghijkl</b>
var=$*; printf '%s\n' "$var"
<b>abcdef ghijkl</b>
var="$*"; printf '%s\n' "$var"
<b>abcdef ghijkl</b>
unset var
printf '%s\n' ${var-$*}
<b>abcdef ghijkl</b>
printf '%s\n' "${var-$*}"
<b>abcdef ghijkl</b>
printf '%s\n' ${var-"$*"}
<b>abcdef ghijkl</b>
printf '%s\n' ${var=$*}
<b>abcdef ghijkl</b>
printf 'var=%s\n' "$var"
<b>var=abcdef ghijkl</b>
unset var
printf '%s\n' "${var=$*}"
<b>abcdef ghijkl</b>
printf 'var=%s\n' "$var"
<b>var=abcdef ghijkl</b>
printf '%s\n' "$@"
<b>abc
def ghi
jkl</b>

unset IFS
printf '%s\n' "$*"
<b>abc def ghi jkl</b>
var=$*; printf '%s\n' "$var"
<b>abc def ghi jkl</b>
var="$*"; printf '%s\n' "$var"
<b>abc def ghi jkl</b>
unset var
printf '%s\n' ${var-$*}
<b>abc
def
ghi
jkl</b>
printf '%s\n' "${var-$*}"
<b>abc def ghi jkl</b>
printf '%s\n' ${var-"$*"}
<b>abc def ghi jkl</b>
printf '%s\n' ${var=$*}
<b>abc
def
ghi
jkl</b>
printf 'var=%s\n' "$var"
<b>var=abc def ghi jkl</b>
unset var
printf '%s\n' "${var=$*}"
<b>abc def ghi jkl</b>
printf 'var=%s\n' "$var"
<b>var=abc def ghi jkl</b>
printf '%s\n' "$@"
<b>abc
def ghi
jkl</b>

set one "" three
printf '[%s]\n' $*
<b>[one]
[]</b> (<i>this line of output is optional</i>)
<b>[three]</b>
printf '[%s]\n' $@
<b>[one]
[]</b> (<i>this line of output is optional</i>)
<b>[three]</b>

set --
printf '[%s]\n' foo "$*"
<b>[foo]
[]</b>
printf '[%s]\n' foo "$novar$*$(echo)"
<b>[foo]
[]</b>
printf '[%s]\n' foo $@
<b>[foo]</b>
printf '[%s]\n' foo "$@"
<b>[foo]</b>
printf '[%s]\n' foo ''$@
<b>[foo]
[]</b>
printf '[%s]\n' foo ''"$@"
<b>[foo]
[]</b>
printf '[%s]\n' foo "$novar$@$(echo)"
<b>[foo]
[]</b> (<i>this line of output is optional</i>)
printf '[%s]\n' foo ''"$novar$@$(echo)"
<b>[foo]
[]</b></pre></blockquote>

In section C.2.7, change:<blockquote><pre><i>perform critical
function</i>rm lockfile</pre></blockquote>to:<blockquote><pre><i>perform
critical function</i>
rm lockfile</pre></blockquote>
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2023-07-17 16:09 larryv         New Issue                                    
2023-07-17 16:09 larryv         Name                      => Lawrence Velázquez
2023-07-17 16:09 larryv         URL                       =>
https://pubs.opengroup.org/onlinepubs/9699919799/xrat/V4_xcu_chap02.html
2023-07-17 16:09 larryv         Section                   => C.2             
======================================================================


  • [Online Pubs... Austin Group Bug Tracker via austin-group-l at The Open Group
    • [Online... Austin Group Bug Tracker via austin-group-l at The Open Group

Reply via email to