From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 4MX/NqaFXV/kUAAA0tVLHw (envelope-from ) for ; Sun, 13 Sep 2020 02:36:22 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id ANIuMaaFXV9YFwAAbx9fmQ (envelope-from ) for ; Sun, 13 Sep 2020 02:36:22 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 61C309402A2 for ; Sun, 13 Sep 2020 02:36:22 +0000 (UTC) Received: from localhost ([::1]:35870 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kHHsL-0004J4-3w for larch@yhetil.org; Sat, 12 Sep 2020 22:36:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47662) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kHHs2-0004I7-FP for bug-guix@gnu.org; Sat, 12 Sep 2020 22:36:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:37701) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kHHs2-0003R1-60 for bug-guix@gnu.org; Sat, 12 Sep 2020 22:36:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kHHs2-0004i5-2B for bug-guix@gnu.org; Sat, 12 Sep 2020 22:36:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#40039: 'wrap-script' introduces spurious argument Resent-From: Brendan Tildesley Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 13 Sep 2020 02:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40039 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ricardo Wurmus , Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 40039-submit@debbugs.gnu.org id=B40039.159996454918077 (code B ref 40039); Sun, 13 Sep 2020 02:36:02 +0000 Received: (at 40039) by debbugs.gnu.org; 13 Sep 2020 02:35:49 +0000 Received: from localhost ([127.0.0.1]:49247 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kHHro-0004hV-Ua for submit@debbugs.gnu.org; Sat, 12 Sep 2020 22:35:49 -0400 Received: from mail-pl1-f172.google.com ([209.85.214.172]:35143) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kHHrl-0004hF-C9 for 40039@debbugs.gnu.org; Sat, 12 Sep 2020 22:35:46 -0400 Received: by mail-pl1-f172.google.com with SMTP id t6so1480966plz.2 for <40039@debbugs.gnu.org>; Sat, 12 Sep 2020 19:35:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language; bh=BaAKH3aeX8dFekrXoQKbPOOWuB7IZwh8ym9obHdrrgw=; b=r5AU4HEV16+iEYC8TJHFUKpF1E+ebxTMM40qVhnaBG739p/GpmAG/A95XVyB1ErPQF Yj7yTuDOxfyK/p7roDGNvLseyloFWIeCDldtlVspRKNymuG43uR74PJvzsUL1FvVx2np g4jho6FMSRVsQr4KMzrpMLEcRYAvH1gMq4Q1DKpfHeNJt1/ft3TNDMD5PiAtOBZq8TTI BHdMiezynT+H/tPcuU7We8LPFaPZi1kf27C/DgAA77hirdJVgcJIVqt8nqMuQ9O5C7IS nQtXvXTfr6hhXM2dqLXsCCkarERgN63xmhdlqJQ97/J4QuOs78/C3X2UftMVjeRaIUPv GTMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=BaAKH3aeX8dFekrXoQKbPOOWuB7IZwh8ym9obHdrrgw=; b=S0gTE7rlHikeT2OqRttU9fvNkJccJce+cpqGxDA5KbyxrXyzQx93UlnCx1JU2/PTin CJmSY4dMrjS+i7fBpl6jvDq1gjobuKBmgqtTKcmZnovjRnLOCuj0o1f+Wf8Yb8qYMXNW GH6Ogbh3itAIoAerP73qfcSsbxoLRg9/0SgBxORmC0jKDd7ZLGKQwgDjd/TIDXJkOUB5 Hfw1O1c3xV6j+FRMC0kWT+0Al47kbZ3lL7u0M4uNoj4CEqtfxnN5Omf8w5qqetTD75cT UUOUN9eTEBfCMt/mlypfkPSOKVC89DRfuFyI2PQ5+RiPG7+d4CGNkg+UlFfS1Kw2dKEP wZuQ== X-Gm-Message-State: AOAM532SsjPvinsV79tOT+O3ZeKKWHCejGeBN3yR3TWqElTC7HR6/RLz c6Cy+OspqVqIjrmIHvaoeKARl2XJzXmLtQ== X-Google-Smtp-Source: ABdhPJwzAOuL1LXaR9vGzRvXyrg6PUZEeREdU2f4N1hAueiAjswdx44UdVoi6b33GcX7He+sJdWOIQ== X-Received: by 2002:a17:90a:bf8c:: with SMTP id d12mr8603970pjs.157.1599964539047; Sat, 12 Sep 2020 19:35:39 -0700 (PDT) Received: from [10.1.1.247] ([14.2.156.188]) by smtp.googlemail.com with ESMTPSA id m14sm6196786pfo.202.2020.09.12.19.35.36 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 12 Sep 2020 19:35:38 -0700 (PDT) References: <87k13psl82.fsf@inria.fr> <2969f516-ca88-ffa6-dd65-f6a29682d42c@gmail.com> <87pnd4lm5p.fsf@elephly.net> From: Brendan Tildesley Message-ID: <3489a6d8-59fb-3452-4220-0936b76caae2@gmail.com> Date: Sun, 13 Sep 2020 12:35:47 +1000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Icedove/68.12.0 MIME-Version: 1.0 In-Reply-To: <87pnd4lm5p.fsf@elephly.net> Content-Type: multipart/alternative; boundary="------------661310287346F7D430A39975" Content-Language: en-US X-Spam-Score: -1.5 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -2.5 (--) X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 40039@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=gmail.com header.s=20161025 header.b=r5AU4HEV; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Spam-Score: 2.59 X-TUID: 3sqOYsZKZ3pb This is a multi-part message in MIME format. --------------661310287346F7D430A39975 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Hi Ricardo, Ludovic... I was wondering if we could revisit and fix this. I believe there is more than 1 bug here. Suppose we have the script test.sh #!/run/current-system/profile/bin/bash echo "$@" ./test.sh returns: hi Wrapping with wrap-script returns  ./test.sh hi (notice the extract space at the start.) With Ludovic's change to char-set:graphicY .test.sh hi The leading space is gone at least. Finally, after removing one of the (car cl)'s, if finally just returns hi. --------------661310287346F7D430A39975 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit

Hi Ricardo, Ludovic... I was wondering if we could revisit and fix this. I believe there is more than 1 bug here.

Suppose we have the script test.sh

#!/run/current-system/profile/bin/bash
echo "$@"

./test.sh returns:

hi

Wrapping with wrap-script returns

 ./test.sh hi

(notice the extract space at the start.)

With Ludovic's change to char-set:graphicY

.test.sh hi

The leading space is gone at least. Finally, after removing one of the (car cl)'s, if finally just returns hi.

--------------661310287346F7D430A39975--