Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Apr 2023 15:49:50 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 270867] xargs -E is not working properly
Message-ID:  <bug-270867-227@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 270867
           Summary: xargs -E is not working properly
           Product: Base System
           Version: Unspecified
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: koichi@nksm.name

With the -E option, an empty line or a line beginning with a space terminat=
es
the readout there.

Expected 1:=20=20
$ printf '%s\n' a b '' d e | xargs -Ex
a b d e=20

Actual 1:
$ printf '%s\n' a b '' d e | xargs -Ex
a b

Expected 2:=20=20
$ printf '%s\n' a b ' c' d e | xargs -Ex
a b c d e=20

Actual 2:
$ printf '%s\n' a b ' c' d e | xargs -Ex
a b

Perhaps a related issue, when two or more characters are specified in the -E
option, the reading is terminated with a string different from the specified
string.

Expected 3:=20=20
$ printf '%s\n' a b c d e | xargs -Ecc
a b c d e

Actual 2:
$ printf '%s\n' a b c d e | xargs -Ecc
a b

--=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-270867-227>