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 ms0.migadu.com with LMTPS id 6NOmJHCNjmHdbwAAgWs5BA (envelope-from ) for ; Fri, 12 Nov 2021 16:51:12 +0100 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 0GcqIHCNjmHqBAAAbx9fmQ (envelope-from ) for ; Fri, 12 Nov 2021 15:51:12 +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 F38DA325BA for ; Fri, 12 Nov 2021 16:51:11 +0100 (CET) Received: from localhost ([::1]:38454 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mlYpa-0004JI-Jw for larch@yhetil.org; Fri, 12 Nov 2021 10:51:10 -0500 Received: from eggs.gnu.org ([209.51.188.92]:39244) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mlYpS-0004J8-PD for guix-patches@gnu.org; Fri, 12 Nov 2021 10:51:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:34246) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mlYpS-0004Nu-GQ for guix-patches@gnu.org; Fri, 12 Nov 2021 10:51:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mlYpS-0006FI-FY for guix-patches@gnu.org; Fri, 12 Nov 2021 10:51:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51791] [PATCH 2/2]: Update guile-bash Resent-From: david larsson Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 12 Nov 2021 15:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51791 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51791@debbugs.gnu.org Cc: Guix-patches Received: via spool by 51791-submit@debbugs.gnu.org id=B51791.163673224123959 (code B ref 51791); Fri, 12 Nov 2021 15:51:02 +0000 Received: (at 51791) by debbugs.gnu.org; 12 Nov 2021 15:50:41 +0000 Received: from localhost ([127.0.0.1]:45788 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mlYp6-0006EN-Lr for submit@debbugs.gnu.org; Fri, 12 Nov 2021 10:50:40 -0500 Received: from server0.selfhosted.xyz ([217.64.149.7]:59326) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mlYp4-0006E8-Ds for 51791@debbugs.gnu.org; Fri, 12 Nov 2021 10:50:39 -0500 Received: from server0.selfhosted.xyz (localhost [127.0.0.1]) by server0.selfhosted.xyz (Postfix) with ESMTP id 005DD272F724; Fri, 12 Nov 2021 16:50:25 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=selfhosted.xyz; s=dkim; t=1636732232; bh=PpxrdkKD6pP9Fn+z2f5tFgjTL4Xtq6xQIlIbVl4Ub6s=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=MInJ/eZn3r0MVM7d6O4DGpnzrr2j+ZUrQZM/0xQOxvU2xyeIKemZHSZKAL/cPtg3R sjD840o9Uuw3gceC58fql8OTcAXiuW/Eu3oWrCmeAeOZKO341do9SrGnyeusdpQXA8 U639Vl0MCWtV2PLUjRy8CkW89iO5ZWL5JRDT+8yzICCgzhl6B3gMU4zwOUE04wx0ck atHpaN4ZJrY9iN5PKioOE7DqfRkuHuxghEnyqQkkbtluSITSMojtoog06TkwfwV4FR 28tFmnahSfl/d5dbyeGS6onEIwsjkZr+eO1uLrvgcgpFq5XH5QvmATwb6HgGYBr5K0 ang37F5QTn1rg== X-Fuglu-Suspect: 4b5b62ad787f41388c249dd2e2fd4d82 X-Fuglu-Spamstatus: NO Received: from webmail.selfhosted.xyz (office.selfhosted.xyz [192.168.1.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: mail@selfhosted.xyz) by server0.selfhosted.xyz (Postfix) with ESMTPSA; Fri, 12 Nov 2021 16:50:25 +0100 (CET) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=_9e48762a4c194a35b470e9c55bbc19af" Date: Fri, 12 Nov 2021 16:50:25 +0100 From: david larsson In-Reply-To: References: Message-ID: <8d6b871864d52beebcdbe83cae97769c@selfhosted.xyz> X-Sender: david.larsson@selfhosted.xyz X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1636732272; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=PpxrdkKD6pP9Fn+z2f5tFgjTL4Xtq6xQIlIbVl4Ub6s=; b=gzgvP7eMwjGtWRxu3gsJz+051XEXWjtBsY7pJlnRBhP+L89VLtWlaxfeCK+/yKc0Jb6WaT OCuJ4Jl7hgBppxGm360FD8mUH1aBG6n1GpepW1cT2xbMrqfWf/tGG2bFMZ+ZBsILcw+PEJ l2M5LSupa2msA6w54qKSWe7K1tlBP9Ysb05P2Ro8v1ttmkMK3YgJL+iA3ou3uY5RUta61L Xvc6qPku2RyFlvSFDyOP+/J5Fif8lR3XOpdZCs3ACdk7/ryphgiOuDIzqaEoXTQZG8+RRL OhRV1tAuoHHAlT8k0nFymIdR6oM7QtywJKjQX+e8ZR6x+kDjTF77q+M+mL/krg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1636732272; a=rsa-sha256; cv=none; b=i1O9PA3FjJ+apt2PZts1lLKGQVEhteeUD27+3xRJdrXUYmBUqgs4wWCnj3acF9LzvSb0wl fj7MJrWZuhsmFF/KN+nUdylJNqHECZDIzc9oswCD1f3xLotH46H19oRrQjqxCQCouE4E49 MHjOairEql5c8vxvE/XFxVzww27luLhCadaTBdJ2iUZa3IAX0b0fCP7crfBGPurCOVzIDG lUStyPWWhwY6IQI2/1jo8r+m7NML+H2QQ6wx8VFKiwXboPbzaJXnyaGVNFauliz1j+dxCX erC62P2u33dhR3KuupByl7+VN9B3dvi4hVF2m834F3+VKLOram2jmEhtsqUOxQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=selfhosted.xyz header.s=dkim header.b="MInJ/eZn"; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -0.93 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=selfhosted.xyz header.s=dkim header.b="MInJ/eZn"; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: F38DA325BA X-Spam-Score: -0.93 X-Migadu-Scanner: scn0.migadu.com X-TUID: M18RSpvmoRhX --=_9e48762a4c194a35b470e9c55bbc19af Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed On 2021-11-12 14:56, david larsson wrote: > Hi, > > The following 2 patches update the guile-bash source url and > home-page, and adds a patch for it that does 2 things: > - fixes a bug, see below > - enables reading newline- or null-separated arguments via stdin to > guile-bash-defined bash functions. > > The bug is that guile-bash can't read string args with whitespaces in > it. Example: > ------------------------ > ~$ enable -f ~/.guix-profile/lib/bash/libguile-bash.so scm > ~$ scm /tmp/printargs > ~$ printargs "apa bepa" cepa > In procedure printargs: scm-function called from Bash with args (apa > bepa cepa) failed to match signature (file1 file2) > ~$ cat /tmp/printargs > (use-modules > (gnu bash)) > (define-bash-function (printargs file1 file2) > (display file1) > (display "\n") > (display file2) > (display "\n")) > ------------------------- > > After this patch, you can read args "as normal", or via stdin that are > either newline- or null-separated: > ------------------------- > ~$ printargs "apa bepa" cepa > apa bepa > cepa > ~$ echo "$apa" > aba > aca > ~$ printf '%s\0' "$apa" bepa | printargs -z > aba > aca > bepa > ~$ echo "$apa" | printargs > aba > aca > ------------------------- > > Best regards, > David --=_9e48762a4c194a35b470e9c55bbc19af Content-Transfer-Encoding: base64 Content-Type: text/x-diff; charset=us-ascii; name=0002-gnu-guile-bash-Add-patch-that-fixes-reading-args.patch Content-Disposition: attachment; filename=0002-gnu-guile-bash-Add-patch-that-fixes-reading-args.patch; size=3438 RnJvbSAxMGNjNjdmN2MyNTk5MWVjMmFjYTIwNDRhOWUxOGU5MDAwMWQ3YTFhIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBEYXZpZCBMYXJzc29uIDxkYXZpZC5sYXJzc29uQHNlbGZob3N0 ZWQueHl6PgpEYXRlOiBGcmksIDEyIE5vdiAyMDIxIDEzOjQyOjQxICswMTAwClN1YmplY3Q6IFtQ QVRDSCAyLzJdIGdudTogZ3VpbGUtYmFzaDogQWRkIHBhdGNoIHRoYXQgZml4Z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wgMTEgTm92IDIwMjEgMTQ6MDc6MDQgKzAxMDAKK1N1YmplY3Q6IFtQQVRDSF0gRW5hYmxl IHJlYWRpbmcgYXJndW1lbnRzIGZyb20gYmFzaCB2aWEgc3RkaW4KKworKiBsaXNwL2dudS9iYXNo LnNjbShkZWZpbmUtYmFzaC1mdW5jdGlvbik6IHJlYWQgZnJvbSBzdGRpbgordG8gU0NNX0FSR1Mg YXJyYXkgd2hlbiBpdCBpcyBvcGVuLCBhbmQgc2VwYXJhdGUgYXJncyBieSBudWxsCitpbnN0ZWFk IG9mIG5ld2xpbmUgaWYgLXogb3B0aW9uIGlzIHBhc3NlZCBhcyAkMS4KKy0tLQorIGxpc3AvZ251 L2Jhc2guc2NtIHwgMTYgKysrKysrKysrKysrLS0tLQorIDEgZmlsZSBjaGFuZ2VkLCAxMiBpbnNl cnRpb25zKCspLCA0IGRlbGV0aW9ucygtKQorCitkaWZmIC0tZ2l0IGEvbGlzcC9nbnUvYmFzaC5z Y20gYi9saXNwL2dudS9iYXNoLnNjbQoraW5kZXggMTk5ZWJjMC4uZTlkY2VhNSAxMDA2NDQKKy0t LSBhL2xpc3AvZ251L2Jhc2guc2NtCisrKysgYi9saXNwL2dudS9iYXNoLnNjbQorQEAgLTMyNiwx MCArMzI2LDE4IEBACisgICAgICAgKGhhc2hxLXNldCEgKmZ1bmNzKiBzeW1ib2wgdGh1bmspCisg ICAgICAgKHVuc2FmZS1mb3JtYXQvZXZhbAorICAgICAgICAiZnVuY3Rpb24gfmEgeworLSAgICAg ICAgICAgIFNDTV9BUkdTPSgkQCkgICAgOworLSAgICAgICAgICAgIGxvY2FsIHJldHZhbD0kfmEg OworLSAgICAgICAgICAgIHVuc2V0IFNDTV9BUkdTICAgOworLSAgICAgICAgICAgIHJldHVybiAk cmV0dmFsICAgOworKyAgICAgICAgICAgIGxvY2FsIC1hIElucHV0IFNDTV9BUkdTICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgOworKyAgICAgICAgICAgIFtbICEgLXQg MCBdXSAmJiBtYXBmaWxlIC1kICcnIElucHV0ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg OworKyAgICAgICAgICAgIGlmIFtbIC1uIFwiJHtJbnB1dFtAXX1cIiBdXTsgdGhlbgorKyAgICAg ICAgICAgICAgICBpZiBbWyBcIiQxXCIgPT0gLXogXV07IHRoZW4KKysgICAgICAgICAgICAgICAg ICAgIGxvY2FsIC1hIFNDTV9BUkdTPVwiKCR7SW5wdXRbKl1AUX0pXCIgICAgICAgICAgICAgICAg ICAgIDsKKysgICAgICAgICAgICAgICAgZWxzZQorKyAgICAgICAgICAgICAgICAgICAgbWFwZmls ZSAtdCBTQ01fQVJHUyA8IDwocHJpbnRmICclcycgXCIke0lucHV0W0BdfVwiKTsgZmkgOworKyAg ICAgICAgICAgIGVsc2UKKysgICAgICAgICAgICAgICAgU0NNX0FSR1M9KFwiJEBcIik7IGZpICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDsKKysgICAgICAgICAgICBsb2Nh bCByZXR2YWw9JH5hICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgIDsKKysgICAgICAgICAgICB1bnNldCBTQ01fQVJHUyAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgIDsKKysgICAgICAgICAgICByZXR1cm4gJHJldHZh bCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDsKKyAg ICAgICAgfSIKKyAgICAgICAgc3ltYm9sIHNwZWNpYWwtdmFybmFtZSkpKSkKKyAKKy0tIAorMi4z MS4wCisKLS0gCjIuMzEuMAoK --=_9e48762a4c194a35b470e9c55bbc19af--