https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=270867

            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: [email protected]
          Reporter: [email protected]

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

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

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

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

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:  
$ 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

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

Reply via email to