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

Done: Karl Berry <karl <at> freefriends.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: carlyle_moulton <at> optusnet.com.au
Subject: bug#78329: closed ()
Date: Wed, 14 May 2025 22:00:04 +0000
[Message part 1 (text/plain, inline)]
Your bug report

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

which was filed against the automake package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 78329 <at> debbugs.gnu.org.

-- 
78329: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=78329
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Karl Berry <karl <at> freefriends.org>
To: 78329-done <at> debbugs.gnu.org
Date: Wed, 14 May 2025 15:59:08 -0600

[Message part 3 (message/rfc822, inline)]
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 4 (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 5 (text/html, inline)]

This bug report was last modified 5 days ago.

Previous Next


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