Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Jun 2019 12:46:52 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 238762] xargs -p only works in the POSIX locale
Message-ID:  <bug-238762-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D238762

            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@FreeBSD.org
          Reporter: delan@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=3Den_AU.UTF-8
LC_CTYPE=3D"en_AU.UTF-8"
LC_COLLATE=3D"en_AU.UTF-8"
LC_TIME=3D"en_AU.UTF-8"
LC_NUMERIC=3D"en_AU.UTF-8"
LC_MONETARY=3D"en_AU.UTF-8"
LC_MESSAGES=3D"en_AU.UTF-8"
LC_ALL=3D
yesexpr=3D"^(([yY]([eE][sS])?)|([yY]))"
$ export LANG=3DPOSIX
$ locale; locale -k yesexpr
LANG=3DPOSIX
LC_CTYPE=3D"POSIX"
LC_COLLATE=3D"POSIX"
LC_TIME=3D"POSIX"
LC_NUMERIC=3D"POSIX"
LC_MONETARY=3D"POSIX"
LC_MESSAGES=3D"POSIX"
LC_ALL=3D
yesexpr=3D"^[yY]"
$ echo test | xargs -p echo
echo test?...y
test

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-238762-227>