GNU bug report logs - #66714
[FIXED] Expr substr on plus symbol

Previous Next

Package: coreutils;

Reported by: petabaud51 <petabaud51 <at> gmail.com>

Date: Mon, 23 Oct 2023 20:54:03 UTC

Severity: normal

Merged with 66713

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 66714 in the body.
You can then email your comments to 66714 AT debbugs.gnu.org in the normal way.

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-coreutils <at> gnu.org:
bug#66714; Package coreutils. (Mon, 23 Oct 2023 20:54:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to petabaud51 <petabaud51 <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Mon, 23 Oct 2023 20:54:03 GMT) Full text and rfc822 format available.

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

From: petabaud51 <petabaud51 <at> gmail.com>
To: bug-coreutils <at> gnu.org
Subject: [FIXED] Expr substr on plus symbol
Date: Mon, 23 Oct 2023 20:58:24 +0100
NEVERMIND, IT'S ON 'INFO EXPR'.
Could you folks please add it to 'man expr'?

XXX
Greetings,
I'm not sure if this is the intended UNIX/POSIX behaviour, but on:
< expr substr a 1 2
, I get:
> a
, which is right, but on:
< expr substr + 1 2
I get:
> expr: syntax error: missing argument after ‘2’

On expr "$line_of_text" 1 2, this error is thrown if the line is a 
simple '+'.
A real-world scenario is getting the first character of each line in 
bulk, crashing if the line is '+'.

< expr --version
> expr (GNU coreutils) 8.32

--




Information forwarded to bug-coreutils <at> gnu.org:
bug#66714; Package coreutils. (Mon, 23 Oct 2023 21:38:02 GMT) Full text and rfc822 format available.

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

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: petabaud51 <petabaud51 <at> gmail.com>, 66714 <at> debbugs.gnu.org
Subject: Re: bug#66714: [FIXED] Expr substr on plus symbol
Date: Mon, 23 Oct 2023 14:36:27 -0700
On 10/23/23 12:58, petabaud51 wrote:
> Could you folks please add it to 'man expr'?

Man pages are supposed to be terse....




Merged 66713 66714. Request was from Paul Eggert <eggert <at> cs.ucla.edu> to control <at> debbugs.gnu.org. (Mon, 23 Oct 2023 21:39:01 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 66713 <at> debbugs.gnu.org and petabaud51 <petabaud51 <at> gmail.com> Request was from Paul Eggert <eggert <at> cs.ucla.edu> to control <at> debbugs.gnu.org. (Mon, 23 Oct 2023 21:39:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 21 Nov 2023 12:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 215 days ago.

Previous Next


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