From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yb1-xb2a.google.com (mail-yb1-xb2a.google.com [IPv6:2607:f8b0:4864:20::b2a]) by sourceware.org (Postfix) with ESMTPS id 550A73858D3C for ; Tue, 21 Mar 2023 17:19:43 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 550A73858D3C Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-yb1-xb2a.google.com with SMTP id n125so18034240ybg.7 for ; Tue, 21 Mar 2023 10:19:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679419182; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=mHmFu1+hRYo0aLAXZ0xR8/o3q6YoTp01JPOvwi81Fjw=; b=JJEX0hFloy/7eoGj2l3tTW3DzPMk5HaRyloUSMyTsR/yNV59RoXTX84HFeA59N4jEF UZuL7VUKhBJn8aQszvFCspwlYn/SLYoSazGanjB+G4Sq2fjklGDm/QwvL5f+cLhsWWRz sbApb11kOTZsnEkg7lWd+D8LTDvO63YyLvLlwYZBtIDRNj7NYSDT7T/MfQnY0dipxEhP sgP/P6hpf0Qou6WMcV8XZBlLAExDeI1xwy6E5IN2k/bNrvfajMfPWGVHR3HuV64T6VCO 44VAAYkssAPl79S5qUrcBuKUlatczdW3AbYAOlcAE59h35X4aJeECibQkrdY3V7gwbFO 0bSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679419182; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=mHmFu1+hRYo0aLAXZ0xR8/o3q6YoTp01JPOvwi81Fjw=; b=25D65tC73I4J3gJbr1Xg0Eai8Ixkk5eLklHK4jVa8UiViJQ3lucoNofqze2wTIjp37 xoM6nEJXjh6/S0OKv86QPxj3LsJZ7eWfcxu1HodQOGA6AUFnW0INYBpI+qOap/brshU2 enYoh4kJj684cMST5bwfAU5ta7rklsVRDfxMhhksgSjpsLLk3Ip3xz7wj9wAzKiCBSdB 9o+g+R0PDtV2+/zjv7UhB8VV6Au27oGa0nrzUeK6iIXok7keukEP1krDh6AIaF6qkIJa bYQqDfUYgsE2c1m+JBVkxRbnOa37EpLNaRdrDjUwgsCZ91OL/AwaHq2nnRDGscInup4q pkLA== X-Gm-Message-State: AAQBX9c75MSVf5AjJykRDODfoJSrfzuzxrVs1tKLk9VJShcrTIZm2D/W /t2d/J5+49SxyTVLw/nRHmEwEV8xI0H2zkRYlLLxPIvU X-Google-Smtp-Source: AKy350Z7OT9aw8oi8c12/6tOAvjQ5brQl3+yQRmKNauAYtW+6kRCoixcWqj45qhK5cj01LbwwEYsYfcknj584c7SjlY= X-Received: by 2002:a5b:902:0:b0:b6e:b13e:9af with SMTP id a2-20020a5b0902000000b00b6eb13e09afmr1903061ybq.8.1679419181883; Tue, 21 Mar 2023 10:19:41 -0700 (PDT) MIME-Version: 1.0 References: <20230320180132.GA1698111@oak> <87cz53rxhg.fsf@oldenburg.str.redhat.com> In-Reply-To: <87cz53rxhg.fsf@oldenburg.str.redhat.com> From: Joe Talbott Date: Tue, 21 Mar 2023 13:19:30 -0400 Message-ID: Subject: Re: Testcase for BZ 28519 To: Florian Weimer Cc: Joe Simmons-Talbott via Libc-help Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,KAM_NUMSUBJECT,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Mon, Mar 20, 2023 at 4:14=E2=80=AFPM Florian Weimer = wrote: > > * Joe Simmons-Talbott via Libc-help: > > > Hi, > > > > I'm trying to write a testcase for BZ 28519 but not having much luck. > > My testcase is below. For a simple application that calls > > 'system("-echo")' I get the same behavior as the BZ but for the testcas= e > > I get the expected behavior where sh fails to find "-echo". > > > > Does anyone have any thought on what I might be missing? > > I suspect it's because of > > tests-container :=3D \ > tst-system \ > #tests-container > > in stdlib/Makefile. /bin/sh in the container is not a real /bin/sh, > so it has different behavior. Thanks Florian that does appear to be why I'm seeing this behavior. Is it worth the effort to add support to shell-container for both a "--" fl= ag and another flag, a boiler-plate "-e" perhaps? Thanks, Joe