From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alex Newsgroups: gmane.emacs.bugs Subject: bug#23590: 25.0.94; Errors in default lgrep command Date: Sat, 23 Jul 2016 11:28:21 -0600 Message-ID: <87fur0clhm.fsf@gmail.com> References: <87futcp8wp.fsf@gmail.com> <83fur0x0ft.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1469294964 17973 80.91.229.3 (23 Jul 2016 17:29:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 23 Jul 2016 17:29:24 +0000 (UTC) Cc: John Mastro , 23590@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jul 23 19:29:13 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bR0jg-0006os-MX for geb-bug-gnu-emacs@m.gmane.org; Sat, 23 Jul 2016 19:29:12 +0200 Original-Received: from localhost ([::1]:53115 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bR0jf-0007iQ-Ng for geb-bug-gnu-emacs@m.gmane.org; Sat, 23 Jul 2016 13:29:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45307) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bR0ja-0007i8-5u for bug-gnu-emacs@gnu.org; Sat, 23 Jul 2016 13:29:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bR0jV-0006Fq-Uc for bug-gnu-emacs@gnu.org; Sat, 23 Jul 2016 13:29:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:50997) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bR0jV-0006Fm-R6 for bug-gnu-emacs@gnu.org; Sat, 23 Jul 2016 13:29:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bR0jV-0004U0-KB for bug-gnu-emacs@gnu.org; Sat, 23 Jul 2016 13:29:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alex Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 Jul 2016 17:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23590 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23590-submit@debbugs.gnu.org id=B23590.146929491017196 (code B ref 23590); Sat, 23 Jul 2016 17:29:01 +0000 Original-Received: (at 23590) by debbugs.gnu.org; 23 Jul 2016 17:28:30 +0000 Original-Received: from localhost ([127.0.0.1]:35101 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bR0j0-0004TI-Fz for submit@debbugs.gnu.org; Sat, 23 Jul 2016 13:28:30 -0400 Original-Received: from mail-io0-f172.google.com ([209.85.223.172]:35493) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bR0iy-0004T5-SX for 23590@debbugs.gnu.org; Sat, 23 Jul 2016 13:28:29 -0400 Original-Received: by mail-io0-f172.google.com with SMTP id m101so130329300ioi.2 for <23590@debbugs.gnu.org>; Sat, 23 Jul 2016 10:28:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=I2O0QSfHcaJZ+CgVrgzDRTm/VQSAQw69ywrAK1VwnBA=; b=s0d7346ih+JJHM7IH5puyY0/vnMAPYlAt4lR1ZWCd2QMnP9d47snS88QmKelEcT763 Ovesqhcc6EexTCy4KSHY9yBQ2ls52NezQlfuTCmynp+C20MHj116Z5DJsmouPJ+QiIXT wItsdR3XIeZy15zGBf0UgyrsB+4fXm1OGUwtVacvE8Rtc1/Jnsf2pZOTm7smLYO5n+Qe rT7IumnXJEJyQVEccguZXzAliskHexu4RU/Pg/vkrZcKG84ysvrYYrgnlc2RVehttFBX CZSMiSAeRaZEG5VAt+kmIW+Djq7TNakTCJrYg494OWPjeFte/4se4fbu5MWArLzfi//7 F5Og== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=I2O0QSfHcaJZ+CgVrgzDRTm/VQSAQw69ywrAK1VwnBA=; b=cmI3Dvk+GVF0ZPgGEzjrclWJamPMm6t6bkwRPX8ZUERMlVsitJfJLizz2wriR8oCnS Kyfvp/wzPphUUdqVR8VjjCV5v+kvUeJoSXiPbQ+kmSpLvPukA0labXhd6g4hBLxBQeXu PqQxB8o2j34KDb0UYBvRi5xioR2vDIwhjy0qz6eBkKY6pzZ8RQ2hxcnz5Byrz8XuBMoi 3x2Tf9EITLq1I4GyG4G55FS/IpmFby3JW5M1bFVMJCI6btcBTpOjxLSUhc9pPe/0j0wK HoJhmqLGFfNvHILUUB5EkfOoe7B20p9LGZPaHI1KJn3ehDyD0WfQDYRS6ht98WKWg3wt wHnw== X-Gm-Message-State: AEkoouvhtBRJT5yRotiNZCHM53tCknqFxs01p+TcRc3/oxjowKW7148y3gk3FicSyJSMxw== X-Received: by 10.107.169.40 with SMTP id s40mr11599041ioe.19.1469294903209; Sat, 23 Jul 2016 10:28:23 -0700 (PDT) Original-Received: from lylat (S01061859339e9903.ss.shawcable.net. [174.2.107.88]) by smtp.gmail.com with ESMTPSA id p63sm5555382itg.9.2016.07.23.10.28.22 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 23 Jul 2016 10:28:22 -0700 (PDT) In-Reply-To: <83fur0x0ft.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 23 Jul 2016 10:45:10 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.95 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:121460 Archived-At: Eli Zaretskii writes: > Shell commands that Emacs emits support /bin/sh and compatible > shells. Zsh's default treatment of unmatched wildcards isn't. > > I don't know how it happened that lgrep invokes zsh on OP's system, > but if that is due to user customizations, they should be corrected. > If that is Emacs's fault (i.e. Emacs invokes zsh without any > customizations), it should be fixed. shell-file-name is set to zsh (as it's my default user shell) in emacs -Q as well. This can be useful for commands like ansi-term. If an Emacs program expects full sh compatibility, then perhaps there could be an extra variable they can check before falling back to shell-file-name? >> GNU Grep has an option (-d ACTION or --directories=ACTION) that can be >> used to skip over directories (with "skip" as the ACTION), but it's not >> in POSIX so I doubt we can use it in Emacs. If you know it will be >> available on your system(s), you could add it to your `grep-template' >> using the same technique as above. > > Yes, but I don't understand why the OP says these are errors. They > aren't; they are just informative messages from Grep. When I use lgrep I already know that I'm not going to be searching directories. I find such messages to be useless clutter. Additionally, while zsh doesn't error on this part (with the workarounds that John provided), bash does appear to error because it is including directories: Grep exited abnormally with code 2 at ... PS: I noticed that between 25.0.94 and 25.0.95 the default command changes slightly. It now includes a wildcard ..?* that bash doesn't seem to like if there are no matching files: grep: ..?*: No such file or directory Grep exited abnormally with code 2 at ...