[hackers] [sbase] xargs: Add -x when -I is used || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Fri, 22 Sep 2023 10:40:29 +0200 (CEST)

commit b3a80526345ec4d3fb69f7cd2844788b7347ac15
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Fri Sep 22 10:37:18 2023 +0200
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Fri Sep 22 10:37:18 2023 +0200

    xargs: Add -x when -I is used
    
    POSIX mandates to use -x when -I is used.

diff --git a/xargs.c b/xargs.c
index 59dd0d2..57e624d 100644
--- a/xargs.c
+++ b/xargs.c
_AT_@ -227,6 +227,7 @@ main(int argc, char *argv[])
                 eofstr = EARGF(usage());
                 break;
         case 'I':
+ xflag = 1;
                 nflag = 1;
                 maxargs = 1;
                 replstr = EARGF(usage());
Received on Fri Sep 22 2023 - 10:40:29 CEST

This archive was generated by hypermail 2.3.0 : Fri Sep 22 2023 - 10:48:34 CEST