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: Karl Berry <karl <at> freefriends.org>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#78329: closed (bash extraction of segment from end of string
 returns full string)
Date: Wed, 14 May 2025 22:00:04 +0000
[Message part 1 (text/plain, inline)]
Your message dated Wed, 14 May 2025 15:59:08 -0600
with message-id <202505142159.54ELx8iD2529746 <at> freefriends.org>
and subject line 
has caused the debbugs.gnu.org bug report #78329,
regarding bash extraction of segment from end of string returns full string
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> 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: <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 3 (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 4 (text/html, inline)]
[Message part 5 (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


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.