public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/18418] New: Failure of stdlib/tst-setcontext3.sh with dash shell
@ 2015-05-15 19:49 adhemerval.zanella at linaro dot org
2015-05-17 12:12 ` [Bug libc/18418] " adhemerval.zanella at linaro dot org
2015-05-18 8:17 ` fweimer at redhat dot com
0 siblings, 2 replies; 3+ messages in thread
From: adhemerval.zanella at linaro dot org @ 2015-05-15 19:49 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=18418
Bug ID: 18418
Summary: Failure of stdlib/tst-setcontext3.sh with dash shell
Product: glibc
Version: 2.21
Status: NEW
Severity: normal
Priority: P2
Component: libc
Assignee: unassigned at sourceware dot org
Reporter: adhemerval.zanella at linaro dot org
CC: drepper.fsp at gmail dot com
Target Milestone: ---
The stdlib/tst-setcontext3 test script fails when invoked with dash:
$ /bin/sh /home/azanella/Projects/glibc/glibc-git/stdlib/tst-setcontext3.sh
/home/azanella/Projects/glibc/glibc-git-build-m64/ ' env'
'GCONV_PATH=/home/azanella/Projects/glibc/glibc-git-build-m64/iconvdata
LOCPATH=/home/azanella/Projects/glibc/glibc-git-build-m64/localedata LC_ALL=C'
' /home/azanella/Projects/glibc/glibc-git-build-m64/elf/ld-linux-x86-64.so.2
--library-path
/home/azanella/Projects/glibc/glibc-git-build-m64:/home/azanella/Projects/glibc/glibc-git-build-m64/math:/home/azanella/Projects/glibc/glibc-git-build-m64/elf:/home/azanella/Projects/glibc/glibc-git-build-m64/dlfcn:/home/azanella/Projects/glibc/glibc-git-build-m64/nss:/home/azanella/Projects/glibc/glibc-git-build-m64/nis:/home/azanella/Projects/glibc/glibc-git-build-m64/rt:/home/azanella/Projects/glibc/glibc-git-build-m64/resolv:/home/azanella/Projects/glibc/glibc-git-build-m64/crypt:/home/azanella/Projects/glibc/glibc-git-build-m64/mathvec:/home/azanella/Projects/glibc/glibc-git-build-m64/nptl'
/home/azanella/Projects/glibc/glibc-git-build-m64/stdlib/
/home/azanella/Projects/glibc/glibc-git/stdlib/tst-setcontext3.sh: 32:
/home/azanella/Projects/glibc/glibc-git/stdlib/tst-setcontext3.sh: Syntax
error: "(" unexpected
This is due it uses the non-portable array semantic:
32 tempfiles=()
33 cleanup() {
34 rm -f "${tempfiles[@]}"
35 }
36 trap cleanup 0
37
38 tempfile=$(mktemp "tst-setcontext3.XXXXXXXXXX")
39 tempfiles+=("$tempfile")
Since it creates just one file, a possible solution is just rm 'tempfile'
directly.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-05-18 8:17 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-15 19:49 [Bug libc/18418] New: Failure of stdlib/tst-setcontext3.sh with dash shell adhemerval.zanella at linaro dot org
2015-05-17 12:12 ` [Bug libc/18418] " adhemerval.zanella at linaro dot org
2015-05-18 8:17 ` fweimer at redhat dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).