GNU bug report logs - #78329
bash extraction of segment from end of string returns full string

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: automake; Reported by: carlyle_moulton@HIDDEN; Done: Karl Berry <karl@HIDDEN>; Maintainer for automake is bug-automake@HIDDEN.

Message received at 78329-done <at> debbugs.gnu.org:


Received: (at 78329-done) by debbugs.gnu.org; 14 May 2025 21:59:13 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed May 14 17:59:13 2025
Received: from localhost ([127.0.0.1]:46852 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uFK88-0006fG-Qu
	for submit <at> debbugs.gnu.org; Wed, 14 May 2025 17:59:13 -0400
Received: from frenzy.freefriends.org ([198.99.81.75]:52882
 helo=freefriends.org)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <karl@HIDDEN>)
 id 1uFK86-0006f1-Ip
 for 78329-done <at> debbugs.gnu.org; Wed, 14 May 2025 17:59:11 -0400
X-Envelope-From: karl@HIDDEN
X-Envelope-To: <78329-done <at> debbugs.gnu.org>
Received: from freefriends.org (localhost [127.0.0.1])
 by freefriends.org (8.16.1/8.16.1) with ESMTPS id 54ELx8hc2529747
 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT)
 for <78329-done <at> debbugs.gnu.org>; Wed, 14 May 2025 15:59:08 -0600
Received: (from apache@localhost)
 by freefriends.org (8.16.1/8.14.7/Submit) id 54ELx8iD2529746;
 Wed, 14 May 2025 15:59:08 -0600
Date: Wed, 14 May 2025 15:59:08 -0600
Message-Id: <202505142159.54ELx8iD2529746@HIDDEN>
From: Karl Berry <karl@HIDDEN>
To: 78329-done <at> debbugs.gnu.org
Subject: 
X-Spam-Score: 2.0 (++)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details. Content preview:  
 Content analysis details:   (2.0 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 0.0 RCVD_IN_VALIDITY_RPBL_BLOCKED RBL: ADMINISTRATOR NOTICE: The
 query to Validity was blocked.  See
 https://knowledge.validity.com/hc/en-us/articles/20961730681243
 for more information.
 [198.99.81.75 listed in bl.score.senderscore.com]
 -0.0 SPF_HELO_PASS          SPF: HELO matches SPF record
 0.0 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED RBL: ADMINISTRATOR NOTICE:
 The query to Validity was blocked.  See
 https://knowledge.validity.com/hc/en-us/articles/20961730681243
 for more information.
 [198.99.81.75 listed in sa-trusted.bondedsender.org]
 -0.0 SPF_PASS               SPF: sender matches SPF record
 -2.3 RCVD_IN_DNSWL_MED      RBL: Sender listed at https://www.dnswl.org/,
 medium trust [198.99.81.75 listed in list.dnswl.org]
 2.3 EMPTY_MESSAGE          Message appears to have no textual parts
 2.0 BLANK_SUBJECT          Subject is present but empty
X-Debbugs-Envelope-To: 78329-done
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 1.0 (+)





Notification sent to carlyle_moulton@HIDDEN:
bug acknowledged by developer. Full text available.
Reply sent to Karl Berry <karl@HIDDEN>:
You have taken responsibility. Full text available.

Message received at 78329 <at> debbugs.gnu.org:


Received: (at 78329) by debbugs.gnu.org; 9 May 2025 21:49:49 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 09 17:49:49 2025
Received: from localhost ([127.0.0.1]:40743 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uDVbJ-0006Bm-Ht
	for submit <at> debbugs.gnu.org; Fri, 09 May 2025 17:49:49 -0400
Received: from frenzy.freefriends.org ([198.99.81.75]:51994
 helo=freefriends.org)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <karl@HIDDEN>)
 id 1uDVbE-0006BT-4x
 for 78329 <at> debbugs.gnu.org; Fri, 09 May 2025 17:49:46 -0400
X-Envelope-From: karl@HIDDEN
Received: from freefriends.org (localhost [127.0.0.1])
 by freefriends.org (8.16.1/8.16.1) with ESMTPS id 549Lnf7x2087337
 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT);
 Fri, 9 May 2025 15:49:41 -0600
Received: (from apache@localhost)
 by freefriends.org (8.16.1/8.14.7/Submit) id 549LnfIE2087336;
 Fri, 9 May 2025 15:49:41 -0600
Date: Fri, 9 May 2025 15:49:41 -0600
Message-Id: <202505092149.549LnfIE2087336@HIDDEN>
From: Karl Berry <karl@HIDDEN>
To: carlyle_moulton@HIDDEN
Subject: Re: bug#78329: bash extraction of segment from end of string returns
 full string
In-Reply-To: <26c738ed-eafe-46ea-8e98-295b45bd15ee@localhost>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 78329
Cc: 78329 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hi,

    Subject: bug#78329: bash extraction of segment from end of string
    returns full string

Thanks for the report, but why are you sending this to bug-automake? 
It seems like bug-bash@HIDDEN is the right list for this one ... --best, karl.




Information forwarded to bug-automake@HIDDEN:
bug#78329; Package automake. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 9 May 2025 07:25:50 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 09 03:25:49 2025
Received: from localhost ([127.0.0.1]:35006 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uDI7A-0001iC-SV
	for submit <at> debbugs.gnu.org; Fri, 09 May 2025 03:25:49 -0400
Received: from lists.gnu.org ([2001:470:142::17]:45054)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <carlyle_moulton@HIDDEN>)
 id 1uDHLh-0004Us-Me
 for submit <at> debbugs.gnu.org; Fri, 09 May 2025 02:36:46 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <carlyle_moulton@HIDDEN>)
 id 1uDHLb-0006fb-JY
 for bug-automake@HIDDEN; Fri, 09 May 2025 02:36:40 -0400
Received: from omr006.pc5.atmailcloud.com ([103.150.252.6])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <carlyle_moulton@HIDDEN>)
 id 1uDHLY-00072h-R5
 for bug-automake@HIDDEN; Fri, 09 May 2025 02:36:39 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
 d=au-east.atmailcloud.com; s=202306; h=Subject:From:Date:Mime-Version:
 Content-Type:Message-Id:To; bh=ne3RB1d9o0dY3Y3XIhdqmYr/CSCVqKLQmBh0DjbMrdY=; 
 b=rV0McCt4ilQWjmQDb9i4qEawSUUdajzT7joLkU1sYsvANKq+eLAaHCJYCU5zKXzthhv2CNg/n2C
 kYLfbQmiOqFqbXdnC+5k+T2eBN1ZWWOurRCUuoLG8OggRXiA+0uBbxVbswuIjO4NeXlcTUucNcnAx
 3OVXyQ+vMNzF3nRaD41K1ho4eBVRTeAjA7w7JH35cC13jqigV62JuFslQ37AW1iFbGikNJTzV5PTe
 4tlQ3xujxu8newAWQyGqcvKc3ODrMyO9NwYuDlZt5D7DSsatl89k4gAyxhu7CXBc3PHs0p5fqyqZo
 mABxDdGWpmS+1F+uAIvwmS5YOJIYEwUtreQQ==;
Received: from cmr.internal.pc5.atmailcloud.com
 (cmr.internal.pc5.atmailcloud.com [192.168.1.1]) 
 by omr.internal.pc5.atmailcloud.com (Exim/cmr.i-0eb9d4307ef0414f9) with ESMTPS
 (envelope-from <carlyle_moulton@HIDDEN>)
 id 1uDHLQ-000000007S0-2dIr for <bug-automake@HIDDEN>;
 Fri, 09 May 2025 06:36:28 +0000
Received: from webmail.pc5.atmailcloud.com (webmail.pc5.atmailcloud.com
 [127.0.0.1]) 
 by cmr.internal.pc5.atmailcloud.com (Exim/localhost) with ESMTPA
 (envelope-from <carlyle_moulton@HIDDEN>)
 id 1uDHLQ-000000001aB-1pJ5 for <bug-automake@HIDDEN>;
 Fri, 09 May 2025 06:36:28 +0000
To: <bug-automake@HIDDEN>
Message-Id: <26c738ed-eafe-46ea-8e98-295b45bd15ee@localhost>
Content-Type: multipart/alternative;
 boundary=79ba0f7e67ffbda1a38aa328f44bf98ebbfcc6b40702bb78c2f965a5fc43
Mime-Version: 1.0
Date: Fri, 09 May 2025 06:36:27 +0000
From: <carlyle_moulton@HIDDEN>
Subject: bash extraction of segment from end of string returns full string
X-Atmail-Id: carlyle_moulton@HIDDEN
X-atmailcloud-spam-action: no action
X-Cm-Analysis: v=2.4 cv=GYoRnxXL c=1 sm=1 tr=0 ts=681da26c
 a=CVSNBg+iDT7Smv9bvOzd2A==:117 a=dt9VzEwgFbYA:10 a=RSmzAf-M6YYA:10
 a=mDV3o1hIAAAA:8 a=EaOMjToGxS9MdQ3ENR4A:9 a=QEXdDO2ut3YA:10 a=dI9p-avQWAUA:10
 a=ZnyUbmHQcTEA:10 a=ox8mmV9Bo28nZL_6680A:9 a=7joMrfY9ASmLxZwp:21
X-Cm-Envelope: MS4xfEjn9jVVCC+LrCwfb8Sk3SqOnXGRlTZ7IfqdPo49OooLGWqNUHJofFvg1JnRQwBjSDxJoGyW134YiHX01qv7Jiu7p8MArTPIRlEUqdSmuY3Ow1MaSMJS
 h9pF3m7WGLtWsv+qQ2X2z4AGSpibRi2b37hQLTzTfWnfMzoVriiQub5iXcm7lUizyGIkPvj5P68Q1A==
X-atmailcloud-route: unknown
Received-SPF: pass client-ip=103.150.252.6;
 envelope-from=carlyle_moulton@HIDDEN; helo=omr006.pc5.atmailcloud.com
X-Spam_score_int: -25
X-Spam_score: -2.6
X-Spam_bar: --
X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7,
 RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001,
 SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Fri, 09 May 2025 03:25:42 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Reply-To: carlyle_moulton@HIDDEN
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

--79ba0f7e67ffbda1a38aa328f44bf98ebbfcc6b40702bb78c2f965a5fc43
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset=UTF-8

GNU bash, version 5.2.32(1)-release (x86_64-redhat-linux-gnu)

Copyright (C) 2022 Free Software Foundation, Inc.

License GPLv3+: GNU GPL version 3 or later < http://gnu.org/licenses/gpl.ht=
ml >

In Fedora 41.

${parameter:-offset} and ${parameter:-offset:length} return full parameter.

carl@fedora:~$ a=3D12345

carl@fedora:~$ echo ${a:-2}

12345

carl@fedora:~$ echo ${a:-3:2}

12345
--79ba0f7e67ffbda1a38aa328f44bf98ebbfcc6b40702bb78c2f965a5fc43
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html; charset=UTF-8

<div>GNU bash, version 5.2.32(1)-release (x86_64-redhat-linux-gnu)<br></div=
><div>Copyright (C) 2022 Free Software Foundation, Inc.<br></div><div>Licen=
se GPLv3+: GNU GPL version 3 or later &lt;<a href=3D"http://gnu.org/license=
s/gpl.html">http://gnu.org/licenses/gpl.html</a>&gt;<br></div><div><br></di=
v><div>In Fedora 41.<br></div><div><br></div><div>${parameter:-offset} and =
${parameter:-offset:length} return full parameter.<br></div><div><br></div>=
<div>carl@fedora:~$ a=3D12345<br></div><div>carl@fedora:~$ echo ${a:-2}<br>=
</div><div>12345<br></div><div>carl@fedora:~$ echo ${a:-3:2}<br></div><div>=
12345<br></div><div><br></div><div><br></div><div><div data-atmail-signatur=
e=3D"" class=3D"gmail_signature" data-smartmail=3D"gmail_signature" style=
=3D"display: block !important"><br></div></div><div><br></div>
--79ba0f7e67ffbda1a38aa328f44bf98ebbfcc6b40702bb78c2f965a5fc43--




Acknowledgement sent to carlyle_moulton@HIDDEN:
New bug report received and forwarded. Copy sent to bug-automake@HIDDEN. Full text available.
Report forwarded to bug-automake@HIDDEN:
bug#78329; Package automake. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Wed, 14 May 2025 22:00:04 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.