From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#21477: 24.4; Imenu - improper parse of shell function names Date: Wed, 12 Aug 2020 08:59:53 -0700 Message-ID: References: <55F6D62E02050314003904F5_0_77779@p057> <5F33F3F000D2020C00390369_0_31281@msllnjpmsgsv06> <874kp7zzh0.fsf@igel.home> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2476"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 21477@debbugs.gnu.org To: Andreas Schwab , "Matthew Persico (BLOOMBERG/ 919 3RD A)" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 12 18:01:06 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k5tBa-0000XA-8p for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 12 Aug 2020 18:01:06 +0200 Original-Received: from localhost ([::1]:41566 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k5tBX-0002S4-FQ for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 12 Aug 2020 12:01:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34194) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k5tAa-0001Xh-68 for bug-gnu-emacs@gnu.org; Wed, 12 Aug 2020 12:00:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33693) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k5tAZ-0006rh-Qe for bug-gnu-emacs@gnu.org; Wed, 12 Aug 2020 12:00:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1k5tAZ-0005B7-OA for bug-gnu-emacs@gnu.org; Wed, 12 Aug 2020 12:00:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 12 Aug 2020 16:00:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21477 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 21477-submit@debbugs.gnu.org id=B21477.159724800219891 (code B ref 21477); Wed, 12 Aug 2020 16:00:03 +0000 Original-Received: (at 21477) by debbugs.gnu.org; 12 Aug 2020 16:00:02 +0000 Original-Received: from localhost ([127.0.0.1]:45238 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k5tAY-0005AZ-1F for submit@debbugs.gnu.org; Wed, 12 Aug 2020 12:00:02 -0400 Original-Received: from mail-yb1-f178.google.com ([209.85.219.178]:39898) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k5tAV-00059l-G6 for 21477@debbugs.gnu.org; Wed, 12 Aug 2020 12:00:00 -0400 Original-Received: by mail-yb1-f178.google.com with SMTP id q16so1624584ybk.6 for <21477@debbugs.gnu.org>; Wed, 12 Aug 2020 08:59:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:mime-version:date :message-id:subject:to:cc; bh=WOxtny9TQE0lC26AMu1QPriOFtbaIYuIyhFdaFM//0c=; b=gqvcfUH7xh+z0pVeMHrbVhakn9D7oMqVRO31Gk8UkApheplZq2/sUUJCjoS8uArXBB pp+lGzeJvJGq8NIPC7yt5NDVtqBjCEBTaY082c+umnHH4lU6Zto5kGKDNshtE1/7qDi0 FnU82iDntQB+z204+eG3bqvPO3BBpjH0m7w0pLNg6xHAF37fe4DX8K+p5knummEAbEcH uB0SvtaFt6Eni2ziiD/141lvoaIAr21pE63RXTJZPmCvP0NV5ieR7k2ILGGWkdtB7i+L N0SZcBxdYoQx/QJaB2ypC3P+1KptdRe1ATxl3LVOpO2Z1YJ5wlawHfWI88xQDsfNHCxU 7qOQ== X-Gm-Message-State: AOAM533pfTZt//3KXiX5wgg3gdkaUmpu7wYnyueyBTKBU7U8pWiNmXYH NV774zWjfVywhOqpHtHkAyonlfsc03MTjPOACqbHN9wQKTo= X-Google-Smtp-Source: ABdhPJwVan7eIxzGnOm58pspALsIoOIc8MV3zwxdC2yHwy6ZhleYx2KBmTN+pYk94HedQLbatYJ8xy+6aKOUPMPnGcI= X-Received: by 2002:a5b:508:: with SMTP id o8mr38084ybp.43.1597247994018; Wed, 12 Aug 2020 08:59:54 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Wed, 12 Aug 2020 08:59:53 -0700 In-Reply-To: <874kp7zzh0.fsf@igel.home> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:184822 Archived-At: Andreas Schwab writes: > It's a POSIX extension, enforced in POSIX mode: > > 13. Function names must be valid shell 'name's. That is, they may not > contain characters other than letters, digits, and underscores, and > may not start with a digit. Declaring a function with an invalid > name causes a fatal syntax error in non-interactive shells. Right. Well, then adding syntax highlighting here would in a way encourage people to write non-POSIX conformant shell code, which even if it happens to work in Bash sounds like a bad idea. So I'm leaning towards closing this bug report as wontfix. Any other opinions? Best regards, Stefan Kangas