From unknown Tue Jun 24 13:55:27 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#66714 <66714@debbugs.gnu.org> To: bug#66714 <66714@debbugs.gnu.org> Subject: Status: [FIXED] Expr substr on plus symbol Reply-To: bug#66714 <66714@debbugs.gnu.org> Date: Tue, 24 Jun 2025 20:55:27 +0000 retitle 66714 [FIXED] Expr substr on plus symbol reassign 66714 coreutils submitter 66714 petabaud51 severity 66714 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 23 16:53:40 2023 Received: (at submit) by debbugs.gnu.org; 23 Oct 2023 20:53:40 +0000 Received: from localhost ([127.0.0.1]:51994 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qv1vf-0001Jd-Fw for submit@debbugs.gnu.org; Mon, 23 Oct 2023 16:53:39 -0400 Received: from lists.gnu.org ([2001:470:142::17]:34090) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qv14p-0002u1-7n for submit@debbugs.gnu.org; Mon, 23 Oct 2023 15:59:03 -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 ) id 1qv14G-0006l2-H6 for bug-coreutils@gnu.org; Mon, 23 Oct 2023 15:58:28 -0400 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qv14F-0003cZ-1M for bug-coreutils@gnu.org; Mon, 23 Oct 2023 15:58:28 -0400 Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-40806e40fccso27155235e9.2 for ; Mon, 23 Oct 2023 12:58:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698091105; x=1698695905; darn=gnu.org; h=content-transfer-encoding:disposition-notification-to:to:subject :from:user-agent:mime-version:date:message-id:from:to:cc:subject :date:message-id:reply-to; bh=w8DqIDKU2ZQZDzBpDvNmoC9o/u0hmFCg+/QbvdWNpoQ=; b=Cf7qgdSYY+EwyAANBE5kbxVaaUX6KYBhuEHcCo/gLGv3az3Ow1QuzGpjtRdjSHullx 2frCJTaqPb22+vrQs1KNrZxPugI5rmieHkYHJBIExh5buDJK8C3wls4KtDKXEWcB/WA4 +s70wa3EvOfZ/lDpi/rDYMEffSXDCuORzGqgw0rUTtjsMUE6ydrXbWPvioFc2CBT6bqH cOqjpvMLwPGDHObwt78pY9tDY10ZTZJ5klZPJx1uIuxGzSt4KlZAtW+tgKTM+aKW33As ZG8XgoQoc9C2b7Q+W9jW9zbcHAYXKa5qmu6zWhBwmudABvxGKBwEWYwt7T1x0nx0tXD6 pJ7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698091105; x=1698695905; h=content-transfer-encoding:disposition-notification-to:to:subject :from:user-agent:mime-version:date:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=w8DqIDKU2ZQZDzBpDvNmoC9o/u0hmFCg+/QbvdWNpoQ=; b=TA+fv7bsbrny/DInpVP7OsH0xEQ5a2XsgwtHLbgzV0jUH3Ng5eA428vKQ3JpUJ/WeJ Z6iDA5Q9Igp/FX/Nak7A49BLGkssgN6hUKT7NUTtq6suVk+JJV6k34wpHAdZZF0jQ3Dg ZK3yH4GYanqB6XrWRbmRjNxK5zmNww8FYQwe14h1dLeR06ULmAOGuRunO7IxqNaQrgAq VjUpcC4Qr67TtllidGBmqc04pmuF/7Y9DOBRTAi6E2Cy7bED2j0GX+q8V8KJO8US38W2 bj4a1fCoACLC9CMqqRhXGbFnwZKnSfJJeHON/hJo1uoEEalnwSO2PglGVOo3uDRj1dpY XNxA== X-Gm-Message-State: AOJu0Yzp7dwlPwGRI7B0aWyEV2qjH2s5L0MinFcuNRfBP4Rc0rSAloAZ SE1bA9/qBFZFOyR/t1lJbWOkQIPSQvoiPQ== X-Google-Smtp-Source: AGHT+IF2OYyllv8cb/CZIt4QgYtpnWqwJZpWCHlrb5ce/M7WmQ3QVHzceMk1+C+F92ZhQF5FvqbP0w== X-Received: by 2002:a05:600c:502a:b0:406:545a:f8fe with SMTP id n42-20020a05600c502a00b00406545af8femr8679869wmr.29.1698091104944; Mon, 23 Oct 2023 12:58:24 -0700 (PDT) Received: from ?IPV6:2001:818:eade:6b00:fc8c:ca27:8c88:9981? ([2001:818:eade:6b00:fc8c:ca27:8c88:9981]) by smtp.gmail.com with ESMTPSA id n10-20020adffe0a000000b003200c918c81sm8416079wrr.112.2023.10.23.12.58.24 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 23 Oct 2023 12:58:24 -0700 (PDT) Message-ID: Date: Mon, 23 Oct 2023 20:58:24 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.1 From: petabaud51 Subject: [FIXED] Expr substr on plus symbol To: bug-coreutils@gnu.org Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::32a; envelope-from=petabaud51@gmail.com; helo=mail-wm1-x32a.google.com X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, GB_FREEMAIL_DISPTO=0.499, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.7 (+) 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: 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 ar [...] Content analysis details: (1.7 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (petabaud51[at]gmail.com) -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit (petabaud51[at]gmail.com) 0.5 GB_FREEMAIL_DISPTO Disposition-Notification-To/From or Disposition-Notification-To/body contain different freemails X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Mon, 23 Oct 2023 16:53:36 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.2 (/) 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 -- From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 23 17:37:06 2023 Received: (at 66714) by debbugs.gnu.org; 23 Oct 2023 21:37:06 +0000 Received: from localhost ([127.0.0.1]:52058 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qv2bi-0005B2-Dc for submit@debbugs.gnu.org; Mon, 23 Oct 2023 17:37:06 -0400 Received: from mail.cs.ucla.edu ([131.179.128.66]:52366) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qv2bg-0005A4-26 for 66714@debbugs.gnu.org; Mon, 23 Oct 2023 17:37:05 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id 72C3A3C00FB13; Mon, 23 Oct 2023 14:36:28 -0700 (PDT) Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id X8OGtgLaPXr7; Mon, 23 Oct 2023 14:36:28 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id 2E63F3C00D1D2; Mon, 23 Oct 2023 14:36:28 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.cs.ucla.edu 2E63F3C00D1D2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.ucla.edu; s=9D0B346E-2AEB-11ED-9476-E14B719DCE6C; t=1698096988; bh=OFAvRqFch0trkwzbwdNf6XLwRVxKBolQKd4FSkXf/m8=; h=Message-ID:Date:MIME-Version:To:From; b=Gj8dzat1Yyh6Jjr/Gjc3QUyw4FjPf7KA0uaEtJFWv8kyjLkSkYFHaNFG1SXMkM6Js g6Zu3FZN9ENy0AUBb/hIJXLuI2rVaLNB2PJD/JEiy+1d/xTgF0FQ0ymefP6txg6pVD SUV+/akUFMkedo5V33giHbBUODaz32bKBmH6loOm31DI2y1eUcbEOktQWY9JXMuNHM mV0yrDRJwp+6zSec1NDppKhat7/ouSlY0L+mJ67dTG2ppCm7JmsMvs6E/O4M3sfPA2 1mgeMN1KK5L/d/koeRUas/7i3976nk2kz2aOP6lnPAgGRKTv3dTIm5jUAIQqKGQyQY BldriDl3SpxFw== X-Virus-Scanned: amavisd-new at mail.cs.ucla.edu Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id N240xprDBCoM; Mon, 23 Oct 2023 14:36:28 -0700 (PDT) Received: from [131.179.64.200] (Penguin.CS.UCLA.EDU [131.179.64.200]) by mail.cs.ucla.edu (Postfix) with ESMTPSA id EE39B3C00FB13; Mon, 23 Oct 2023 14:36:27 -0700 (PDT) Message-ID: <18ae400b-7d00-4e4c-adf1-84735f32a91a@cs.ucla.edu> Date: Mon, 23 Oct 2023 14:36:27 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#66714: [FIXED] Expr substr on plus symbol Content-Language: en-US To: petabaud51 , 66714@debbugs.gnu.org References: From: Paul Eggert Organization: UCLA Computer Science Department In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 66714 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On 10/23/23 12:58, petabaud51 wrote: > Could you folks please add it to 'man expr'? Man pages are supposed to be terse.... From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 23 17:38:06 2023 Received: (at control) by debbugs.gnu.org; 23 Oct 2023 21:38:06 +0000 Received: from localhost ([127.0.0.1]:52063 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qv2cf-0005DA-Po for submit@debbugs.gnu.org; Mon, 23 Oct 2023 17:38:06 -0400 Received: from mail.cs.ucla.edu ([131.179.128.66]:44672) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qv2ce-0005CO-EG for control@debbugs.gnu.org; Mon, 23 Oct 2023 17:38:05 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id D11AA3C00FB13 for ; Mon, 23 Oct 2023 14:37:29 -0700 (PDT) Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id 1K5oslOvpEoK for ; Mon, 23 Oct 2023 14:37:29 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id 8DC823C00D1D2 for ; Mon, 23 Oct 2023 14:37:29 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.cs.ucla.edu 8DC823C00D1D2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.ucla.edu; s=9D0B346E-2AEB-11ED-9476-E14B719DCE6C; t=1698097049; bh=vMSNTOlXpfuQDQOqKikjTW+60K0uizJSg2N+E+equuE=; h=Message-ID:Date:MIME-Version:To:From; b=GZxw4aibBCVif/mss062Auv6GZfjnh4ReLBNaLXND6c0viQgtoWGdHjBPZL2mGbPy u4xIkLnwOp0TrpYBO5T+4va13zMkqoLF4a22PKoe23OSQquy4rB+RoZRr0KyE+LdmB EuRaxVHGywWuaG7JvOE2TF/rK3b3VdixxjVSCpnDj/8yEKPYr57geVThZv58tKjTom 5y+J0w5whWj5o3az8CaUpIz9sNpMm7u+e0kZtpJizCdDGcngIk3HlLn/4G8kNV3ryi sdnko4FShn9t3hIn7nTViBmtXPrFrdEXoj44TTNjG+Cu0sUX3SDD6Dpizb4hP/Dg/M 7MUINRrlTFbIQ== X-Virus-Scanned: amavisd-new at mail.cs.ucla.edu Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id pnR-N-oJOMnJ for ; Mon, 23 Oct 2023 14:37:29 -0700 (PDT) Received: from [131.179.64.200] (Penguin.CS.UCLA.EDU [131.179.64.200]) by mail.cs.ucla.edu (Postfix) with ESMTPSA id 668EB3C00FB13 for ; Mon, 23 Oct 2023 14:37:29 -0700 (PDT) Message-ID: Date: Mon, 23 Oct 2023 14:37:29 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: GNU bug control From: Paul Eggert Subject: 66713+66714 not a bug Organization: UCLA Computer Science Department Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) merge 66713 66714 close 66713 From unknown Tue Jun 24 13:55:27 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 21 Nov 2023 12:24:07 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator