Viewing Issue Simple Details
[ Jump to Notes ]
|
[ Issue History ]
[ Print ]
|
ID |
Category |
Severity |
Type |
Date Submitted |
Last Update |
0001759 |
[Online Pubs] Rationale |
Editorial |
Error |
2023-07-17 16:09 |
2024-08-12 12:35 |
|
Reporter |
larryv |
View Status |
public |
|
Assigned To |
ajosey |
Priority |
normal |
Resolution |
Accepted |
|
Status |
Applied |
|
|
|
|
Name |
Lawrence Velázquez |
Organization |
|
User Reference |
|
URL |
https://pubs.opengroup.org/onlinepubs/9699919799/xrat/V4_xcu_chap02.html [^] |
Section |
C.2 |
|
Summary |
0001759: line breaks missing in "Shell Command Language" code examples |
Description |
Like in 0000180 and 0001758, 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:set "abc" "def ghi" "jkl"
unset novar
IFS=' ' # a space
printf '%s\n' $*
abc
def
ghi
jklprintf '%s\n' "$*"
abc def ghi jklprintf '%s\n' xx$*yy
xxabc
def
ghi
jklyyprintf '%s\n' "xx$*yy"
xxabc def ghi jklyyprintf '%s\n' $@
abc
def
ghi
jklprintf '%s\n' "$@"
abc
def ghi
jklprintf '%s\n' ${1+"$@"}
abc
def ghi
jklprintf '%s\n' ${novar-"$@"}
abc
def ghi
jklprintf '%s\n' xx$@yy
xxabc
def
ghi
jklyyprintf '%s\n' "xx$@yy"
xxabc
def ghi
jklyyprintf '%s\n' $@$@
abc
def
ghi
jklabc
def
ghi
jklprintf '%s\n' "$@$@"
abc
def ghi
jklabc
def ghi
jklIFS=':'
printf '%s\n' "$*"
abc:def ghi:jklvar=$*; printf '%s\n' "$var"
abc:def ghi:jklvar="$*"; printf '%s\n' "$var"
abc:def ghi:jklunset var
printf '%s\n' ${var-$*}
abc
def ghi
jklprintf '%s\n' "${var-$*}"
abc:def ghi:jklprintf '%s\n' ${var-"$*"}
abc:def ghi:jklprintf '%s\n' ${var=$*}
abc
def ghi
jklprintf 'var=%s\n' "$var"
var=abc:def ghi:jklunset var
printf '%s\n' "${var=$*}"
abc:def ghi:jklprintf 'var=%s\n' "$var"
var=abc:def ghi:jkl
IFS=" # null
printf '%s\n' "$*"
abcdef ghijklvar=$*; printf '%s\n' "$var"
abcdef ghijklvar="$*"; printf '%s\n' "$var"
abcdef ghijklunset var
printf '%s\n' ${var-$*}
abcdef ghijklprintf '%s\n' "${var-$*}"
abcdef ghijklprintf '%s\n' ${var-"$*"}
abcdef ghijklprintf '%s\n' ${var=$*}
abcdef ghijklprintf 'var=%s\n' "$var"
var=abcdef ghijklunset var
printf '%s\n' "${var=$*}"
abcdef ghijklprintf 'var=%s\n' "$var"
var=abcdef ghijklprintf '%s\n' "$@"
abc
def ghi
jkl
unset IFS
printf '%s\n' "$*"
abc def ghi jklvar=$*; printf '%s\n' "$var"
abc def ghi jklvar="$*"; printf '%s\n' "$var"
abc def ghi jklunset var
printf '%s\n' ${var-$*}
abc
def
ghi
jklprintf '%s\n' "${var-$*}"
abc def ghi jklprintf '%s\n' ${var-"$*"}
abc def ghi jklprintf '%s\n' ${var=$*}
abc
def
ghi
jklprintf 'var=%s\n' "$var"
var=abc def ghi jklunset var
printf '%s\n' "${var=$*}"
abc def ghi jklprintf 'var=%s\n' "$var"
var=abc def ghi jklprintf '%s\n' "$@"
abc
def ghi
jkl
set one "" three
printf '[%s]\n' $*
[one]
[] (this line of output is optional)[three]printf '[%s]\n' $@
[one]
[] (this line of output is optional)[three]
set --
printf '[%s]\n' foo "$*"
[foo]
[]printf '[%s]\n' foo "$novar$*$(echo)"
[foo]
[]printf '[%s]\n' foo $@
[foo]printf '[%s]\n' foo "$@"
[foo]printf '[%s]\n' foo ''$@
[foo]
[]printf '[%s]\n' foo ''"$@"
[foo]
[]printf '[%s]\n' foo "$novar$@$(echo)"
[foo]
[] (this line of output is optional)printf '[%s]\n' foo ''"$novar$@$(echo)"
[foo]
[] to:set "abc" "def ghi" "jkl"
unset novar
IFS=' ' # a space
printf '%s\n' $*
abc
def
ghi
jkl
printf '%s\n' "$*"
abc def ghi jkl
printf '%s\n' xx$*yy
xxabc
def
ghi
jklyy
printf '%s\n' "xx$*yy"
xxabc def ghi jklyy
printf '%s\n' $@
abc
def
ghi
jkl
printf '%s\n' "$@"
abc
def ghi
jkl
printf '%s\n' ${1+"$@"}
abc
def ghi
jkl
printf '%s\n' ${novar-"$@"}
abc
def ghi
jkl
printf '%s\n' xx$@yy
xxabc
def
ghi
jklyy
printf '%s\n' "xx$@yy"
xxabc
def ghi
jklyy
printf '%s\n' $@$@
abc
def
ghi
jklabc
def
ghi
jkl
printf '%s\n' "$@$@"
abc
def ghi
jklabc
def ghi
jkl
IFS=':'
printf '%s\n' "$*"
abc:def ghi:jkl
var=$*; printf '%s\n' "$var"
abc:def ghi:jkl
var="$*"; printf '%s\n' "$var"
abc:def ghi:jkl
unset var
printf '%s\n' ${var-$*}
abc
def ghi
jkl
printf '%s\n' "${var-$*}"
abc:def ghi:jkl
printf '%s\n' ${var-"$*"}
abc:def ghi:jkl
printf '%s\n' ${var=$*}
abc
def ghi
jkl
printf 'var=%s\n' "$var"
var=abc:def ghi:jkl
unset var
printf '%s\n' "${var=$*}"
abc:def ghi:jkl
printf 'var=%s\n' "$var"
var=abc:def ghi:jkl
IFS=" # null
printf '%s\n' "$*"
abcdef ghijkl
var=$*; printf '%s\n' "$var"
abcdef ghijkl
var="$*"; printf '%s\n' "$var"
abcdef ghijkl
unset var
printf '%s\n' ${var-$*}
abcdef ghijkl
printf '%s\n' "${var-$*}"
abcdef ghijkl
printf '%s\n' ${var-"$*"}
abcdef ghijkl
printf '%s\n' ${var=$*}
abcdef ghijkl
printf 'var=%s\n' "$var"
var=abcdef ghijkl
unset var
printf '%s\n' "${var=$*}"
abcdef ghijkl
printf 'var=%s\n' "$var"
var=abcdef ghijkl
printf '%s\n' "$@"
abc
def ghi
jkl
unset IFS
printf '%s\n' "$*"
abc def ghi jkl
var=$*; printf '%s\n' "$var"
abc def ghi jkl
var="$*"; printf '%s\n' "$var"
abc def ghi jkl
unset var
printf '%s\n' ${var-$*}
abc
def
ghi
jkl
printf '%s\n' "${var-$*}"
abc def ghi jkl
printf '%s\n' ${var-"$*"}
abc def ghi jkl
printf '%s\n' ${var=$*}
abc
def
ghi
jkl
printf 'var=%s\n' "$var"
var=abc def ghi jkl
unset var
printf '%s\n' "${var=$*}"
abc def ghi jkl
printf 'var=%s\n' "$var"
var=abc def ghi jkl
printf '%s\n' "$@"
abc
def ghi
jkl
set one "" three
printf '[%s]\n' $*
[one]
[] (this line of output is optional)
[three]
printf '[%s]\n' $@
[one]
[] (this line of output is optional)
[three]
set --
printf '[%s]\n' foo "$*"
[foo]
[]
printf '[%s]\n' foo "$novar$*$(echo)"
[foo]
[]
printf '[%s]\n' foo $@
[foo]
printf '[%s]\n' foo "$@"
[foo]
printf '[%s]\n' foo ''$@
[foo]
[]
printf '[%s]\n' foo ''"$@"
[foo]
[]
printf '[%s]\n' foo "$novar$@$(echo)"
[foo]
[] (this line of output is optional)
printf '[%s]\n' foo ''"$novar$@$(echo)"
[foo]
[]
In section C.2.7, change:perform critical functionrm lockfile to:perform critical function
rm lockfile |
Tags |
No tags attached. |
|
Attached Files |
|
|