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

Previous Next

Package: automake;

Reported by: carlyle_moulton <at> optusnet.com.au

Date: Fri, 9 May 2025 07:26:03 UTC

Severity: normal

To reply to this bug, email your comments to 78329 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-automake <at> gnu.org:
bug#78329; Package automake. (Fri, 09 May 2025 07:26:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to carlyle_moulton <at> optusnet.com.au:
New bug report received and forwarded. Copy sent to bug-automake <at> gnu.org. (Fri, 09 May 2025 07:26:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: <carlyle_moulton <at> optusnet.com.au>
To: <bug-automake <at> gnu.org>
Subject: bash extraction of segment from end of string returns full string
Date: Fri, 09 May 2025 06:36:27 +0000
[Message part 1 (text/plain, inline)]
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.html >

In Fedora 41.

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

carl <at> fedora:~$ a=12345

carl <at> fedora:~$ echo ${a:-2}

12345

carl <at> fedora:~$ echo ${a:-3:2}

12345
[Message part 2 (text/html, inline)]

Information forwarded to bug-automake <at> gnu.org:
bug#78329; Package automake. (Fri, 09 May 2025 21:50:02 GMT) Full text and rfc822 format available.

Message #8 received at 78329 <at> debbugs.gnu.org (full text, mbox):

From: Karl Berry <karl <at> freefriends.org>
To: carlyle_moulton <at> optusnet.com.au
Cc: 78329 <at> debbugs.gnu.org
Subject: Re: bug#78329: bash extraction of segment from end of string returns
 full string
Date: Fri, 9 May 2025 15:49:41 -0600
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 <at> gnu.org is the right list for this one ... --best, karl.




This bug report was last modified 2 days ago.

Previous Next


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