[Bug 238762] xargs -p only works in the POSIX locale
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sat Jun 22 12:46:55 UTC 2019
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=238762
Bug ID: 238762
Summary: xargs -p only works in the POSIX locale
Product: Base System
Version: 12.0-RELEASE
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: bin
Assignee: bugs at FreeBSD.org
Reporter: delan at azabani.com
# expected
$ echo test | xargs -t echo
echo test
test
$ echo test | xargs -p echo
echo test?...y
test
# actual
$ echo test | xargs -t echo
echo test
test
$ echo test | xargs -p echo
echo test?...y
$ locale; locale -k yesexpr
LANG=en_AU.UTF-8
LC_CTYPE="en_AU.UTF-8"
LC_COLLATE="en_AU.UTF-8"
LC_TIME="en_AU.UTF-8"
LC_NUMERIC="en_AU.UTF-8"
LC_MONETARY="en_AU.UTF-8"
LC_MESSAGES="en_AU.UTF-8"
LC_ALL=
yesexpr="^(([yY]([eE][sS])?)|([yY]))"
$ export LANG=POSIX
$ locale; locale -k yesexpr
LANG=POSIX
LC_CTYPE="POSIX"
LC_COLLATE="POSIX"
LC_TIME="POSIX"
LC_NUMERIC="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_ALL=
yesexpr="^[yY]"
$ echo test | xargs -p echo
echo test?...y
test
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list