Hello community, here is the log from the commit of package paexec for openSUSE:Factory checked in at 2020-05-13 22:56:06 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/paexec (Old) and /work/SRC/openSUSE:Factory/.paexec.new.2738 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "paexec" Wed May 13 22:56:06 2020 rev:3 rq:804586 version:1.1.2 Changes: -------- --- /work/SRC/openSUSE:Factory/paexec/paexec.changes 2019-05-03 22:47:20.471895198 +0200 +++ /work/SRC/openSUSE:Factory/.paexec.new.2738/paexec.changes 2020-05-13 22:56:07.591014184 +0200 @@ -1,0 +2,5 @@ +Tue May 12 10:15:39 UTC 2020 - Paolo Stivanin <i...@paolostivanin.com> + +- Update to 1.1.2 (no changelog) + +------------------------------------------------------------------- Old: ---- paexec-1.1.1.tar.gz New: ---- paexec-1.1.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ paexec.spec ++++++ --- /var/tmp/diff_new_pack.pXE711/_old 2020-05-13 22:56:08.147015268 +0200 +++ /var/tmp/diff_new_pack.pXE711/_new 2020-05-13 22:56:08.151015277 +0200 @@ -1,7 +1,7 @@ # # spec file for package paexec # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: paexec -Version: 1.1.1 +Version: 1.1.2 Release: 0 Summary: Utility for task distribution over networks or CPUs License: MIT ++++++ paexec-1.1.1.tar.gz -> paexec-1.1.2.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/paexec-1.1.1/Makefile.inc new/paexec-1.1.2/Makefile.inc --- old/paexec-1.1.1/Makefile.inc 2019-02-15 20:03:04.000000000 +0100 +++ new/paexec-1.1.2/Makefile.inc 2020-03-30 21:17:50.000000000 +0200 @@ -8,7 +8,17 @@ # Those poor souls who run Solaris can set AWK to gawk AWK ?= /usr/bin/awk -MKC_REQUIRE_PROGS += ${AWK} runawk +.ifndef PAEXEC_SH +. if exists(/usr/xpg4/bin/sh) +# Solaris-10's /bin/sh is completely broken, +# /usr/xpg4/bin/sh sucks too but sucks less. +PAEXEC_SH = /usr/xpg4/bin/sh +. else +PAEXEC_SH = /bin/sh +. endif +.endif + +MKC_REQUIRE_PROGS += ${AWK} runawk ${PAEXEC_SH} .export AWK MKC_CHECK_CUSTOM += awk_fflush @@ -21,7 +31,8 @@ .endif INTEXTS_REPLS += awk ${PROG.${AWK}:U${AWK}} +INTEXTS_REPLS += sh ${PROG.${PAEXEC_SH}:U${PAEXEC_SH}} INTEXTS_REPLS += version ${VERSION:U} # -VERSION= 1.1.1 +VERSION= 1.1.2 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/paexec-1.1.1/doc/NEWS new/paexec-1.1.2/doc/NEWS --- old/paexec-1.1.1/doc/NEWS 2019-02-15 20:03:04.000000000 +0100 +++ new/paexec-1.1.2/doc/NEWS 2020-03-30 21:17:50.000000000 +0200 @@ -1,4 +1,23 @@ ====================================================================== +Version 1.1.2, by Aleksey Cheusov, Mon, 30 Mar 2020 21:50:03 +0300 + + paexec -x: + * fix handling tasks with leading spaces + * fix handling tasks with backslashes + + paargs: + * on SunOS-5.10 use /usr/xpg4/bin/sh + instead of horribly broken /bin/sh + + Fix build failure on SunOS-5.10 (getdelim(3) is absent) + + Introduce PAEXEC_SH environment variable + for fixing /bin/sh on SunOS-5.10 + + Introduce PAEXEC_FIND variable for regression tests (required on + SunOS-5.10) + +====================================================================== Version 1.1.1, by Aleksey Cheusov, Fri, 15 Feb 2019 21:58:39 +0300 Fix build using clang diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/paexec-1.1.1/paargs/paargs.1 new/paexec-1.1.2/paargs/paargs.1 --- old/paexec-1.1.1/paargs/paargs.1 2019-02-15 20:03:08.000000000 +0100 +++ new/paexec-1.1.2/paargs/paargs.1 2020-03-30 21:18:16.000000000 +0200 @@ -1,4 +1,4 @@ -.\" Automatically generated by Pod::Man 4.09 (Pod::Simple 3.35) +.\" Automatically generated by Pod::Man 4.11 (Pod::Simple 3.35) .\" .\" Standard preamble: .\" ======================================================================== @@ -54,16 +54,20 @@ .\" Avoid warning from groff about undefined register 'F'. .de IX .. -.if !\nF .nr F 0 -.if \nF>0 \{\ -. de IX -. tm Index:\\$1\t\\n%\t"\\$2" +.nr rF 0 +.if \n(.g .if rF .nr rF 1 +.if (\n(rF:(\n(.g==0)) \{\ +. if \nF \{\ +. de IX +. tm Index:\\$1\t\\n%\t"\\$2" .. -. if !\nF==2 \{\ -. nr % 0 -. nr F 2 +. if !\nF==2 \{\ +. nr % 0 +. nr F 2 +. \} . \} .\} +.rr rF .\" .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). .\" Fear. Run. Save yourself. No user-serviceable parts. @@ -129,7 +133,7 @@ .\" ======================================================================== .\" .IX Title "paargs 1" -.TH paargs 1 "2019-02-15" "" "" +.TH paargs 1 "2020-03-30" "" "" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l @@ -207,5 +211,5 @@ .SH "HOME" .IX Header "HOME" <http://sourceforge.net/projects/paexec> -.SH "SEE ALSO \fIpaexec\fP\|(1)" +.SH "SEE ALSO \fBpaexec\fP\|(1)" .IX Header "SEE ALSO paexec" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/paexec-1.1.1/paargs/paargs.in new/paexec-1.1.2/paargs/paargs.in --- old/paexec-1.1.1/paargs/paargs.in 2019-02-15 20:03:04.000000000 +0100 +++ new/paexec-1.1.2/paargs/paargs.in 2020-03-30 21:17:50.000000000 +0200 @@ -1,4 +1,4 @@ -#!/bin/sh +#!@sh@ usage (){ cat 1>&2 <<'EOF' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/paexec-1.1.1/paexec/Makefile new/paexec-1.1.2/paexec/Makefile --- old/paexec-1.1.1/paexec/Makefile 2019-02-15 20:03:04.000000000 +0100 +++ new/paexec-1.1.2/paexec/Makefile 2020-03-30 21:17:50.000000000 +0200 @@ -21,12 +21,13 @@ CFLAGS += -DBUFSIZE=${BUFSIZE} MKC_FEATURES = strlcat strlcpy SLIST RB -MKC_SOURCE_FUNCLIBS = shquote +MKC_SOURCE_FUNCLIBS = shquote getdelim MKC_COMMON_DEFINES = -D_GNU_SOURCE MKC_COMMON_HEADERS = unistd.h stdlib.h MKC_CHECK_TYPES = intptr_t:stdint.h intptr_t:inttypes.h MKC_CHECK_HEADERS = sys/select.h +MKC_CHECK_FUNCS4 = getdelim:stdio.h MKC_CHECK_FUNCS3 = shquote MKC_CHECK_FUNCS1 = sysconf diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/paexec-1.1.1/paexec/getdelim.c new/paexec-1.1.2/paexec/getdelim.c --- old/paexec-1.1.1/paexec/getdelim.c 1970-01-01 01:00:00.000000000 +0100 +++ new/paexec-1.1.2/paexec/getdelim.c 2020-03-30 21:17:50.000000000 +0200 @@ -0,0 +1,80 @@ +/* $NetBSD: getdelim.c,v 1.2 2015/12/25 20:12:46 joerg Exp $ */ +/* NetBSD-src: getline.c,v 1.2 2014/09/16 17:23:50 christos Exp */ + +/*- + * Copyright (c) 2011 The NetBSD Foundation, Inc. + * All rights reserved. + * + * This code is derived from software contributed to The NetBSD Foundation + * by Christos Zoulas. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED + * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + +#include <stdio.h> +#include <stdlib.h> + +ssize_t +getdelim(char **buf, size_t *bufsiz, int delimiter, FILE *fp); + +ssize_t +getdelim(char **buf, size_t *bufsiz, int delimiter, FILE *fp) +{ + char *ptr, *eptr; + + + if (*buf == NULL || *bufsiz == 0) { + *bufsiz = BUFSIZ; + if ((*buf = malloc(*bufsiz)) == NULL) + return -1; + } + + for (ptr = *buf, eptr = *buf + *bufsiz;;) { + int c = fgetc(fp); + if (c == -1) { + if (feof(fp)) { + ssize_t diff = (ssize_t)(ptr - *buf); + if (diff != 0) { + *ptr = '\0'; + return diff; + } + } + return -1; + } + *ptr++ = c; + if (c == delimiter) { + *ptr = '\0'; + return ptr - *buf; + } + if (ptr + 2 >= eptr) { + char *nbuf; + size_t nbufsiz = *bufsiz * 2; + ssize_t d = ptr - *buf; + if ((nbuf = realloc(*buf, nbufsiz)) == NULL) + return -1; + *buf = nbuf; + *bufsiz = nbufsiz; + eptr = nbuf + nbufsiz; + ptr = nbuf + d; + } + } +} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/paexec-1.1.1/paexec/paexec.1 new/paexec-1.1.2/paexec/paexec.1 --- old/paexec-1.1.1/paexec/paexec.1 2019-02-15 20:03:08.000000000 +0100 +++ new/paexec-1.1.2/paexec/paexec.1 2020-03-30 21:18:14.000000000 +0200 @@ -1,4 +1,4 @@ -.\" Automatically generated by Pod::Man 4.09 (Pod::Simple 3.35) +.\" Automatically generated by Pod::Man 4.11 (Pod::Simple 3.35) .\" .\" Standard preamble: .\" ======================================================================== @@ -54,16 +54,20 @@ .\" Avoid warning from groff about undefined register 'F'. .de IX .. -.if !\nF .nr F 0 -.if \nF>0 \{\ -. de IX -. tm Index:\\$1\t\\n%\t"\\$2" +.nr rF 0 +.if \n(.g .if rF .nr rF 1 +.if (\n(rF:(\n(.g==0)) \{\ +. if \nF \{\ +. de IX +. tm Index:\\$1\t\\n%\t"\\$2" .. -. if !\nF==2 \{\ -. nr % 0 -. nr F 2 +. if !\nF==2 \{\ +. nr % 0 +. nr F 2 +. \} . \} .\} +.rr rF .\" .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). .\" Fear. Run. Save yourself. No user-serviceable parts. @@ -129,7 +133,7 @@ .\" ======================================================================== .\" .IX Title "paexec 1" -.TH paexec 1 "2019-02-15" "" "" +.TH paexec 1 "2020-03-30" "" "" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l @@ -376,7 +380,7 @@ .Ve .IP "\fB\-z\fR" 6 .IX Item "-z" -If applied, read/\fIwrite\fR\|(2) operations from/to nodes becomes not +If applied, read/\fBwrite\fR\|(2) operations from/to nodes becomes not critical. In case paexec has lost connection to the node, it will reassign failed task to another node and, if \-s applied, will output \&\*(L"fatal\*(R" string to stdout (\*(L"success\*(R" + \*(L"failure\*(R" + \*(L"fatal\*(R"). This @@ -463,7 +467,7 @@ .IX Item "-0" Change paexec to expect \s-1NUL\s0 character as a line separator instead of newline. This is expected to be used in -concert with the \-print0 function in \fIfind\fR\|(1). +concert with the \-print0 function in \fBfind\fR\|(1). .IP "\fB\-J\fR \fIreplstr\fR" 6 .IX Item "-J replstr" Execute \fIcommand\fR for each \fItask\fR, replacing one or more occurrences @@ -507,10 +511,10 @@ For more examples see paexec.pdf and examples/ subdirectory in the distribution. .SH "NOTES" .IX Header "NOTES" -\&\fIselect\fR\|(2) system call and non-blocking \fIread\fR\|(2) are used to read result +\&\fBselect\fR\|(2) system call and non-blocking \fBread\fR\|(2) are used to read result lines from \fInodes\fR. .PP -At the moment blocking \fIwrite\fR\|(2) is used to send \fItask\fR to the +At the moment blocking \fBwrite\fR\|(2) is used to send \fItask\fR to the \&\fInode\fR. This may slow down an entire processing if \fItasks\fR are too big. So, it is recommended to use shorter \fItasks\fR, for example, filename or \s-1URI\s0 (several tens of bytes in size) instead of @@ -539,6 +543,10 @@ .IP "\fI\s-1PAEXEC_NODES\s0\fR" 6 .IX Item "PAEXEC_NODES" Unless option \fB\-n\fR was applied, this variables specifies the nodes. +.IP "\fI\s-1PAEXEC_SH\s0\fR" 6 +.IX Item "PAEXEC_SH" +This variable sets the shell interpreter used inside \fBpaexec\fR. +By default it is /bin/sh. .IP "\fI\s-1PAEXEC_TRANSPORT\s0\fR" 6 .IX Item "PAEXEC_TRANSPORT" Unless option \fB\-t\fR was applied, this variables specifies the transport. @@ -550,5 +558,5 @@ .SH "HOME" .IX Header "HOME" <http://sourceforge.net/projects/paexec> -.SH "SEE ALSO \fIssh\fP\|(1) \fIrsh\fP\|(1) \fIselect\fP\|(2) \fIread\fP\|(2) \fIwrite\fP\|(2)" +.SH "SEE ALSO \fBssh\fP\|(1) \fBrsh\fP\|(1) \fBselect\fP\|(2) \fBread\fP\|(2) \fBwrite\fP\|(2)" .IX Header "SEE ALSO ssh rsh select read write" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/paexec-1.1.1/paexec/paexec.c new/paexec-1.1.2/paexec/paexec.c --- old/paexec-1.1.1/paexec/paexec.c 2019-02-15 20:03:04.000000000 +0100 +++ new/paexec-1.1.2/paexec/paexec.c 2020-03-30 21:17:50.000000000 +0200 @@ -182,6 +182,8 @@ static const char *msg_eot = NULL; char msg_delim = ' '; /* also used in tasks.c */ +static const char *shell = NULL; + static int resistant = 0; static int resistance_timeout = 0; static int resistance_last_restart = 0; @@ -392,7 +394,8 @@ } if (snprintf (cmd, sizeof (cmd), - "%s\n while read f; do" + "%s; IFS=; " + "while read -r f; do" " res=`run \"$f\"`;" " ex=$?;" " %s" /* printing result */ @@ -420,7 +423,7 @@ } /**/ - if (snprintf (cmd, sizeof (cmd), "env %s /bin/sh -c %s", env_str, shq_cmd) >= sizeof (cmd)){ + if (snprintf (cmd, sizeof (cmd), "env %s %s -c %s", env_str, shell, shq_cmd) >= sizeof (cmd)){ err_fatal ("paexec: Internal error! (buffer size)"); } xfree (arg_cmd); @@ -1312,6 +1315,12 @@ if (env_nodes) assign_str (&arg_nodes, env_nodes); + char *env_shell = getenv ("PAEXEC_SH"); + if (env_shell) + shell = env_shell; + else + shell = "/bin/sh"; + char *paexec_env = getenv ("PAEXEC_ENV"); if (paexec_env){ for (tok = strtok (paexec_env, " ,"); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/paexec-1.1.1/paexec/paexec.pod new/paexec-1.1.2/paexec/paexec.pod --- old/paexec-1.1.1/paexec/paexec.pod 2019-02-15 20:03:04.000000000 +0100 +++ new/paexec-1.1.2/paexec/paexec.pod 2020-03-30 21:17:50.000000000 +0200 @@ -448,6 +448,11 @@ Unless option B<-n> was applied, this variables specifies the nodes. +=item I<PAEXEC_SH> + +This variable sets the shell interpreter used inside B<paexec>. +By default it is /bin/sh. + =item I<PAEXEC_TRANSPORT> Unless option B<-t> was applied, this variables specifies the transport. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/paexec-1.1.1/paexec/paexec_reorder.1 new/paexec-1.1.2/paexec/paexec_reorder.1 --- old/paexec-1.1.1/paexec/paexec_reorder.1 2019-02-15 20:03:08.000000000 +0100 +++ new/paexec-1.1.2/paexec/paexec_reorder.1 2020-03-30 21:18:15.000000000 +0200 @@ -1,4 +1,4 @@ -.\" Automatically generated by Pod::Man 4.09 (Pod::Simple 3.35) +.\" Automatically generated by Pod::Man 4.11 (Pod::Simple 3.35) .\" .\" Standard preamble: .\" ======================================================================== @@ -54,16 +54,20 @@ .\" Avoid warning from groff about undefined register 'F'. .de IX .. -.if !\nF .nr F 0 -.if \nF>0 \{\ -. de IX -. tm Index:\\$1\t\\n%\t"\\$2" +.nr rF 0 +.if \n(.g .if rF .nr rF 1 +.if (\n(rF:(\n(.g==0)) \{\ +. if \nF \{\ +. de IX +. tm Index:\\$1\t\\n%\t"\\$2" .. -. if !\nF==2 \{\ -. nr % 0 -. nr F 2 +. if !\nF==2 \{\ +. nr % 0 +. nr F 2 +. \} . \} .\} +.rr rF .\" .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). .\" Fear. Run. Save yourself. No user-serviceable parts. @@ -129,7 +133,7 @@ .\" ======================================================================== .\" .IX Title "paexec_reorder 1" -.TH paexec_reorder 1 "2019-02-15" "" "" +.TH paexec_reorder 1 "2020-03-30" "" "" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l @@ -155,7 +159,7 @@ .IP "\fB\-M\fR \fImethod\fR" 6 .IX Item "-M method" If \fImethod\fR is \fIm\fR, result is reordered in memory, this is the default. -If it is \fIf\fR, temporary files are used for reordering. If \fIs\fR, \fB\f(BIsort\fB\|(1)\fR +If it is \fIf\fR, temporary files are used for reordering. If \fIs\fR, \fB\fBsort\fB\|(1)\fR command is used. .IP "\fB\-l\fR" 6 .IX Item "-l" @@ -204,7 +208,7 @@ .IX Header "ENVIRONMENT" .IP "\fI\s-1TMPDIR\s0\fR" 6 .IX Item "TMPDIR" -\&\fI\fItempnam\fI\|(3)\fR is used for creating temporary directory. +\&\fI\f(BItempnam\fI\|(3)\fR is used for creating temporary directory. See the appropriate man page. .IP "\fI\s-1PAEXEC_EOT\s0\fR" 6 .IX Item "PAEXEC_EOT" @@ -217,5 +221,5 @@ .SH "HOME" .IX Header "HOME" <http://sourceforge.net/projects/paexec> -.SH "SEE ALSO \fIpaexec\fP\|(1) \fItempnam\fP\|(3)" +.SH "SEE ALSO \fBpaexec\fP\|(1) \fBtempnam\fP\|(3)" .IX Header "SEE ALSO paexec tempnam" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/paexec-1.1.1/paexec/wrappers.c new/paexec-1.1.2/paexec/wrappers.c --- old/paexec-1.1.1/paexec/wrappers.c 2019-02-15 20:03:04.000000000 +0100 +++ new/paexec-1.1.2/paexec/wrappers.c 2020-03-30 21:17:50.000000000 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2007-2013 Aleksey Cheusov <v...@gmx.net> + * Copyright (c) 2007-2019 Aleksey Cheusov <v...@gmx.net> * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the @@ -33,6 +33,10 @@ #include "wrappers.h" #include "common.h" +#if !HAVE_FUNC6_PSELECT_SYS_SELECT_H +ssize_t getdelim(char **lineptr, size_t *n, int delim, FILE *stream); +#endif + void nonblock (int fd) { int ret = fcntl (fd, F_GETFL, 0); Binary files old/paexec-1.1.1/presentation/paexec.pdf and new/paexec-1.1.2/presentation/paexec.pdf differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/paexec-1.1.1/tests/test.sh new/paexec-1.1.2/tests/test.sh --- old/paexec-1.1.1/tests/test.sh 2019-02-15 20:03:04.000000000 +0100 +++ new/paexec-1.1.2/tests/test.sh 2020-03-30 21:17:50.000000000 +0200 @@ -2,6 +2,9 @@ export LC_ALL=C +: ${PAEXEC_FIND:=find} +FIND_CMD=$PAEXEC_FIND + #EXEPREFIX='valgrind -q' #EXEPREFIX='env EF_PROTECT_BELOW=1 ef' @@ -886,7 +889,7 @@ 18 /etc/dir with spaces;/etc/dir with spaces/subdir ' - find . -type f -name '*.wav' -print0 | + $FIND_CMD . -type f -name '*.wav' -print0 | runtest -n+6 -0x -C echo | sort | sed 's|^[.]/||' | cmp 'paexec -0' \ @@ -1030,6 +1033,19 @@ 6 pid FFFFFF ' + printf 'a\nbb\n ccc with \\backslashes and spaces \\\ndddd\neeeee\nffffff\n' | + runtest -lpx -n+7 \ + -C awk 'BEGIN {print toupper(ARGV[1])}' | + resort | awk '{ sub(/^[0-9]+ [0-9]+ /, "num pid "); print }' | + cmp 'paexec toupper #6.5 (-x, spaces and backslashes)' \ +'num pid A +num pid BB +num pid CCC WITH \BACKSLASHES AND SPACES \ +num pid DDDD +num pid EEEEE +num pid FFFFFF +' + # all_substr printf 'a\nbb\nccc\ndddd\neeeee\nffffff\n' | runtest -l -c cmd_all_substr \