From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 08 05:33:42 2018 Received: (at submit) by debbugs.gnu.org; 8 Jul 2018 09:33:42 +0000 Received: from localhost ([127.0.0.1]:50643 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fc64c-0007Ih-0G for submit@debbugs.gnu.org; Sun, 08 Jul 2018 05:33:42 -0400 Received: from eggs.gnu.org ([208.118.235.92]:34764) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fc64Z-0007IT-9r for submit@debbugs.gnu.org; Sun, 08 Jul 2018 05:33:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fc64S-0002ge-RQ for submit@debbugs.gnu.org; Sun, 08 Jul 2018 05:33:34 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:60774) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fc64S-0002gU-Nm for submit@debbugs.gnu.org; Sun, 08 Jul 2018 05:33:32 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53967) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fc64R-0003U3-0v for bug-gnu-emacs@gnu.org; Sun, 08 Jul 2018 05:33:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fc64N-0002dR-Qx for bug-gnu-emacs@gnu.org; Sun, 08 Jul 2018 05:33:31 -0400 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:35038) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fc64N-0002dM-M5 for bug-gnu-emacs@gnu.org; Sun, 08 Jul 2018 05:33:27 -0400 Received: from x4db54f11.dyn.telefonica.de ([77.181.79.17]:54280 helo=lola) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fc64M-0005WB-QP for bug-gnu-emacs@gnu.org; Sun, 08 Jul 2018 05:33:27 -0400 From: David Kastrup To: bug-gnu-emacs@gnu.org Subject: 27.0.50; M-x grep appends /dev/null to command line Date: Sun, 08 Jul 2018 11:33:24 +0200 Message-ID: <87lgamdqcb.fsf@fencepost.gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit 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: -6.0 (------) M-x grep RET with the command line git grep --color -n -e simple_trans_list results in -*- mode: grep; default-directory: "/usr/local/tmp/lilypond/" -*- Grep started at Sun Jul 8 11:29:44 git grep --color -n -e simple_trans_list /dev/null fatal: /dev/null: '/dev/null' is outside repository Grep exited abnormally with code 128 at Sun Jul 8 11:29:44 I did not ask for /dev/null to be appended to the command line, and previous incantations didn't do it. Obviously, not all grep-kind programs are happy about that change. In GNU Emacs 27.0.50 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.22.30) of 2018-06-20 built on lola Repository revision: 94a85bd4e4f2e4805f042adde3754fcc325783cb Windowing system distributor 'The X.Org Foundation', version 11.0.11906000 System Description: Ubuntu 18.04 LTS Recent messages: Saving /home/dak/.newsrc.eld...done Making completion list... Mark saved where search started /usr/local/tmp/lilypond=20 Reverting buffer =E2=80=98emacs-pager.iawaSB=E2=80=99. When done with a buffer, type C-x # Grep exited abnormally with code 128 funcall-interactively: Buffer is read-only: # Directory /usr/local/tmp/lilypond/ Grep exited abnormally with code 128 [2 times] Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND DBUS GSETTINGS NOTIFY LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 THREADS LIBSYSTEMD LCMS2 Important settings: value of $LC_MONETARY: de_DE.UTF-8 value of $LC_NUMERIC: POSIX value of $LC_TIME: de_DE.UTF-8 value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Shell Minor modes in effect: magit-auto-revert-mode: t global-git-commit-mode: t async-bytecomp-package-mode: t shell-dirtrack-mode: t TeX-PDF-mode: t diff-auto-refine-mode: t minibuffer-electric-default-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: /home/dak/.emacs.d/elpa/auctex-12.1.0/auctex hides /usr/local/share/emacs/s= ite-lisp/auctex /home/dak/.emacs.d/elpa/auctex-12.1.0/tex-site hides /usr/local/share/emacs= /site-lisp/tex-site Features: (shadow emacsbug grep view thingatpt vc vc-dispatcher jka-compr git-rebase magit-obsolete magit-blame magit-stash magit-bisect magit-remote magit-commit magit-sequence magit-notes magit-worktree magit-branch magit-files magit-refs magit-status subr-x magit magit-repos magit-apply magit-wip magit-log magit-diff magit-core magit-autorevert magit-process magit-margin magit-mode magit-git magit-section magit-popup git-commit log-edit pcvs-util add-log with-editor async-bytecomp async ediff-merg ediff-wind ediff-diff ediff-mult ediff-help ediff-init ediff-util ediff magit-utils dash dabbrev url-util shr-color color shr text-property-search svg dom misearch multi-isearch browse-url gnus-dup cl-print debug flow-fill mm-archive gnus-kill rfc2104 mailalias smtpmail sendmail nnir sort smiley gnus-cite mail-extr gnus-async gnus-bcklg qp gnus-ml disp-table pop3 nndraft gnutls network-stream nsm nndoc nndir nnmh nnml nnfolder nnnil gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg gnus-art mm-uu mml2015 mm-view mml-smime smime dig mailcap nntp gnus-cache gnus-sum gnus-group gnus-undo gnus-start gnus-cloud nnimap nnmail mail-source utf7 netrc nnoo gnus-spec gnus-int gnus-range message rmc puny rfc822 mml mml-sec epa derived epg mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader gnus-win cl-extra help-mode vc-filewise vc-rcs conf-mode make-mode gnuplot-gui cl gnuplot info-look dired-x dired dired-loaddefs python tramp-sh tramp trampver tramp-compat tramp-loaddefs ucs-normalize parse-time format-spec smerge-mode latexenc sh-script smie executable preview prv-emacs reftex-dcr reftex-auc reftex reftex-loaddefs reftex-vars tex-bar toolbar-x noutline outline font-latex tex-mode shell pcomplete tex-buf latex edmacro kmacro tex-ispell tex-style tex-info tex dbus xml crm texinfo lilypond-mode compile comint ansi-color ring cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs autorevert filenotify vc-git diff-mode easy-mmode scheme elec-pair advice desktop frameset minibuf-eldef gnus nnheader gnus-util rmail rmail-loaddefs rfc2047 rfc2045 ietf-drums mail-utils mm-util mail-prsvr wid-edit cus-start cus-load preview-latex server time-date mule-util tex-site info finder-inf package easymenu epg-config url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json map url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 794087 118341) (symbols 48 60033 1) (miscs 40 1539 2133) (strings 32 147127 13081) (string-bytes 1 4666111) (vectors 16 83326) (vector-slots 8 2342372 139566) (floats 8 524 805) (intervals 56 27893 1511) (buffers 992 274)) --=20 David Kastrup From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 08 05:51:34 2018 Received: (at 32093) by debbugs.gnu.org; 8 Jul 2018 09:51:34 +0000 Received: from localhost ([127.0.0.1]:50660 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fc6Lu-0007iB-8U for submit@debbugs.gnu.org; Sun, 08 Jul 2018 05:51:34 -0400 Received: from mout.gmx.net ([212.227.17.22]:43411) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fc6Ls-0007hx-7J for 32093@debbugs.gnu.org; Sun, 08 Jul 2018 05:51:32 -0400 Received: from detlef.gmx.de ([212.91.242.147]) by mail.gmx.com (mrgmx101 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MVrQS-1fZqFR0EY4-00X8L2; Sun, 08 Jul 2018 11:51:25 +0200 From: Michael Albinus To: David Kastrup Subject: Re: bug#32093: 27.0.50; M-x grep appends /dev/null to command line References: <87lgamdqcb.fsf@fencepost.gnu.org> Date: Sun, 08 Jul 2018 11:51:23 +0200 In-Reply-To: <87lgamdqcb.fsf@fencepost.gnu.org> (David Kastrup's message of "Sun, 08 Jul 2018 11:33:24 +0200") Message-ID: <87pnzyawdg.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:/c9qGh2LrbOIL9jBsOx/pjMHDQLFRqWRiYhdSWOdm7hy3Cvsd4x jyZHptQcBKLm8qLCApIfZccPoXsxh+cwyaPcQ1ZNsOrNHtF0LBeFvHEtUWvgtwwG2OganYT Sfb57zzfoBr/uVMeIMm0AMfsYM9QsLbLMlxW8L2j5kyhHlsPXnsPXLxWEI1tOXw/u4XvhcY qmwc6OP+9vcde9/Jb7HbQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:PcErhTY88F8=:6sIPv/PJH74SoZ5BAbZtq+ hP1BfzrE4jyF2Ckiv/U27KcIEi98O6IIlVe+fTnd067oUyS+F//q5uNhKjBA0Kyu7Iy2vR/pV Q0UUC4y5jAf0EEw+fJ+yUZlun/9ZNqtqeV+oAnXOYuTJzH8jVnHrTbRa+bNrx1QBwwgX2l2bR q4HPhw22eQslARZMxnwBJ3BOd7PvQXCx5d5mdVLHRCsI6H6hHVyspgE/Subj9pSTMaboBFcBj ntRWFC0os+URZwl7cZKJD1VsepRsAZ7ARuhUahvw11ln3Vef51Ia4lEpm5hwO2OJy8pa2Uot5 sy1Zm/sTk1MD3cnNoF5ZEnlFCvRPxbG4JAjJ7nk4bKegDDlqNPBCDP1eIVv8azAnutrkPSqF3 yB7axFbEZWmqQoiHM1nJHppKMVCGoi0Mo2EJYwqr1XXczO8XTe53Kt9se0U7aNCyFK8JugX+Q jfmERBHq9zNmcvlLf5+MclpF+y+XBGvkRSZcbkosMoBLTj5ZrwlZoyyB8NmwdZ8ahV4onXY+C 81tLxnX10ODyUh5OMZ2GStmKx7Wuf2ghE7ZJYkWU5tYjAIR8x6/UhLt2uyi+kqJ46efUjQWjf buQXdDO1HYJVOo5XSUEVKF6j+Bb/zZuP0uQDOllodtkGw3L9UC7Nt9p8TKZqAwx0SZ3fNKnq+ 43tNka3/gR3F1u6BaGaSvJkrn8wzcmzb6uSBbmsZIMr/R/6VXoy7dFIZ2wYWo3RIzY77Woezi zGCfT1BfqqHbi2sPjLT2bLamcJI0uLJTGnkwzC/nEpCSJAV0BA7QV5P4Du8C3b4BfFg86QlIc 2SniPzp X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 32093 Cc: 32093@debbugs.gnu.org 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.7 (-) David Kastrup writes: > I did not ask for /dev/null to be appended to the command line, and > previous incantations didn't do it. Obviously, not all grep-kind > programs are happy about that change. --8<---------------cut here---------------start------------->8--- grep-use-null-device is a variable defined in =E2=80=98grep.el=E2=80=99. Its value is =E2=80=98auto-detect=E2=80=99 Documentation: If t, append the value of =E2=80=98null-device=E2=80=99 to =E2=80=98grep=E2= =80=99 commands. This is done to ensure that the output of grep includes the filename of any match in the case where only a single file is searched, and is not necessary if the grep program used supports the =E2=80=98-H=E2=80=99 option. In interactive usage, the actual value of this variable is set up by =E2=80=98grep-compute-defaults=E2=80=99; to change the default value, use Customize or call the function =E2=80=98grep-apply-setting=E2=80=99. You can customize this variable. --8<---------------cut here---------------end--------------->8--- Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 08 05:53:50 2018 Received: (at 32093) by debbugs.gnu.org; 8 Jul 2018 09:53:50 +0000 Received: from localhost ([127.0.0.1]:50664 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fc6O6-0007lP-Kp for submit@debbugs.gnu.org; Sun, 08 Jul 2018 05:53:50 -0400 Received: from eggs.gnu.org ([208.118.235.92]:36611) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fc6O4-0007lA-TG for 32093@debbugs.gnu.org; Sun, 08 Jul 2018 05:53:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fc6Nw-0000Ao-GO for 32093@debbugs.gnu.org; Sun, 08 Jul 2018 05:53:43 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:35160) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fc6Nw-0000Ai-CZ; Sun, 08 Jul 2018 05:53:40 -0400 Received: from x4db54f11.dyn.telefonica.de ([77.181.79.17]:54298 helo=lola) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fc6Nv-0006P2-Rl; Sun, 08 Jul 2018 05:53:40 -0400 From: David Kastrup To: Michael Albinus Subject: Re: bug#32093: 27.0.50; M-x grep appends /dev/null to command line References: <87lgamdqcb.fsf@fencepost.gnu.org> <87pnzyawdg.fsf@gmx.de> Date: Sun, 08 Jul 2018 11:53:37 +0200 In-Reply-To: <87pnzyawdg.fsf@gmx.de> (Michael Albinus's message of "Sun, 08 Jul 2018 11:51:23 +0200") Message-ID: <87h8ladpem.fsf@fencepost.gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 32093 Cc: 32093@debbugs.gnu.org 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: -6.0 (------) Michael Albinus writes: > David Kastrup writes: > >> I did not ask for /dev/null to be appended to the command line, and >> previous incantations didn't do it. Obviously, not all grep-kind >> programs are happy about that change. > > grep-use-null-device is a variable defined in =E2=80=98grep.el=E2=80=99. > Its value is =E2=80=98auto-detect=E2=80=99 > > Documentation: > If t, append the value of =E2=80=98null-device=E2=80=99 to =E2=80=98grep= =E2=80=99 commands. > This is done to ensure that the output of grep includes the filename of > any match in the case where only a single file is searched, and is not > necessary if the grep program used supports the =E2=80=98-H=E2=80=99 opti= on. > > In interactive usage, the actual value of this variable is set up > by =E2=80=98grep-compute-defaults=E2=80=99; to change the default value, = use > Customize or call the function =E2=80=98grep-apply-setting=E2=80=99. > > You can customize this variable. So you are saying there is a bug workaround that will tie me into using one grep-like command in future, ever. Because obviously in my case auto detection failed. --=20 David Kastrup From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 08 06:05:33 2018 Received: (at 32093) by debbugs.gnu.org; 8 Jul 2018 10:05:33 +0000 Received: from localhost ([127.0.0.1]:50672 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fc6ZR-00083A-0F for submit@debbugs.gnu.org; Sun, 08 Jul 2018 06:05:33 -0400 Received: from mout.gmx.net ([212.227.15.15]:34175) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fc6ZM-00082q-FV for 32093@debbugs.gnu.org; Sun, 08 Jul 2018 06:05:30 -0400 Received: from detlef.gmx.de ([212.91.242.147]) by mail.gmx.com (mrgmx001 [212.227.17.190]) with ESMTPSA (Nemesis) id 0M1Fe4-1fvhmr3ggC-00tCmy; Sun, 08 Jul 2018 12:05:22 +0200 From: Michael Albinus To: David Kastrup Subject: Re: bug#32093: 27.0.50; M-x grep appends /dev/null to command line References: <87lgamdqcb.fsf@fencepost.gnu.org> <87pnzyawdg.fsf@gmx.de> <87h8ladpem.fsf@fencepost.gnu.org> Date: Sun, 08 Jul 2018 12:05:20 +0200 In-Reply-To: <87h8ladpem.fsf@fencepost.gnu.org> (David Kastrup's message of "Sun, 08 Jul 2018 11:53:37 +0200") Message-ID: <87lgamavq7.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:EeHZo+0SBVlnjbIb3edPq7ThWb1MhR11BL+0v+fswj58fjeToR2 z2HBBDaAJKJBxTAm8IymEEqKeaUbg/n26Bfjp97lCmtR0DbXkPg/BZErAOUVeN418BBGgIP LJN2RMfUpK0D8PVt6jqhpWVff8HwRlZ8dsquhyp53cFrsu5HEriHCU6tmxtnbdMwouhdHlT NBC5MiAJ82S/vNeq8kY2g== X-UI-Out-Filterresults: notjunk:1;V01:K0:OHPFhw9oZSo=:7ZIZsxeTN3Mcn3gX1x4nLp KkPA2nAksp4DfuCDh8Sd602jXmp2EpIcLebasO8gPdZaFmItCyCA9aLCJcmfcJx4OwTFUCXPf UECj1wzgzqHCxeum//tAsuC4yN7b5GyhqL3BNQS4K7wI+xz/RaxI/QA82Nd9TWAKNaK0okiT3 nAD8zmAeFKdJ2Kj2GhvfOtgX1ELMNp4EtI6WTVgHG3SNwl+vNqNYxmdbCAHQuT2WczRRtaRfB KxLNyk4nsAC/4di75WoRp0gi5xXzC0hMVDLU7tnXEFTMhbQ5CF1ggjbG/eFqbRfEl44O36Pap fyY+mohMTndH4zb7KpyjwIB74u4qIiJYb4O6wVPYCZpCbJZt2rw7Sa5Ky46VjS11443yhziKD szM+AAY0c50erOa+5164Ze17jobXpT8qrDYaABKZe7r4bUm6WQ64Eqy1ANJTaBP02guv7Tr17 gU9J0+qm4+1HxErXVjTiKWoVqeBf01faTPF6kzsZwFORlLbN8PZAuMl8LoHwE04vr+vhXOwwI vrGlIOi3Vyr8hJM6PiBkILEdIVixurwJHwfuwEiH/P7cJ0sLyASpf+qq7fRZ1jT3ZQtwycGKV MN/hUX9a/gRpIicmvYcOgIXiJKh958NrLjmoN435HzNH5CSmiLIC4HGQzdfl5VzALBtYlRILV 8SKggf9mwAUss7Fd+vuSlnmptGgXalc5laFSYxGxwMP3LN96LQqBtbWC53Tqse7uBfV1IMwHI KU4h6iK9aLlqlxPxfkR4AqiJCYfeu77HuaFyIX+ZOgCMlPF9I6ZOXctjlnwHGvgKyRAdvTuO3 mi7WWYv X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 32093 Cc: 32093@debbugs.gnu.org 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.7 (-) David Kastrup writes: > So you are saying there is a bug workaround that will tie me into using > one grep-like command in future, ever. Because obviously in my case > auto detection failed. Don't know. Maybe you check what autodetect does in your case. Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 08 07:18:08 2018 Received: (at 32093) by debbugs.gnu.org; 8 Jul 2018 11:18:08 +0000 Received: from localhost ([127.0.0.1]:50697 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fc7hg-0001Ny-7u for submit@debbugs.gnu.org; Sun, 08 Jul 2018 07:18:08 -0400 Received: from eggs.gnu.org ([208.118.235.92]:49827) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fc7he-0001NT-AA for 32093@debbugs.gnu.org; Sun, 08 Jul 2018 07:18:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fc7hV-0006o1-2f for 32093@debbugs.gnu.org; Sun, 08 Jul 2018 07:18:01 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:35869) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fc7hU-0006ns-UJ; Sun, 08 Jul 2018 07:17:56 -0400 Received: from x4db54f11.dyn.telefonica.de ([77.181.79.17]:54906 helo=lola) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fc7hT-0005ML-W4; Sun, 08 Jul 2018 07:17:56 -0400 From: David Kastrup To: Michael Albinus Subject: Re: bug#32093: 27.0.50; M-x grep appends /dev/null to command line References: <87lgamdqcb.fsf@fencepost.gnu.org> <87pnzyawdg.fsf@gmx.de> <87h8ladpem.fsf@fencepost.gnu.org> <87lgamavq7.fsf@gmx.de> Date: Sun, 08 Jul 2018 13:17:53 +0200 In-Reply-To: <87lgamavq7.fsf@gmx.de> (Michael Albinus's message of "Sun, 08 Jul 2018 12:05:20 +0200") Message-ID: <87d0vydli6.fsf@fencepost.gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 32093 Cc: 32093@debbugs.gnu.org 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: -6.0 (------) Michael Albinus writes: > David Kastrup writes: > >> So you are saying there is a bug workaround that will tie me into using >> one grep-like command in future, ever. Because obviously in my case >> auto detection failed. > > Don't know. Maybe you check what autodetect does in your case. Here is the respective code: 318e2976570 (Kim F. Storm 2003-11-23 626) (unless (or (not grep-use-null-device) (eq grep-use-null-device t)) 318e2976570 (Kim F. Storm 2003-11-23 627) (setq grep-use-null-device 318e2976570 (Kim F. Storm 2003-11-23 628) (with-temp-buffer 318e2976570 (Kim F. Storm 2003-11-23 629) (let ((hello-file (expand-file-name "HELLO" data-directory))) 318e2976570 (Kim F. Storm 2003-11-23 630) (not 0acfb7cea68 (Kim F. Storm 2006-04-28 631) (and (if grep-command 318e2976570 (Kim F. Storm 2003-11-23 632) ;; `grep-command' is already set, so 318e2976570 (Kim F. Storm 2003-11-23 633) ;; use that for testing. 0acfb7cea68 (Kim F. Storm 2006-04-28 634) (grep-probe grep-command 0acfb7cea68 (Kim F. Storm 2006-04-28 635) `(nil t nil "^English" ,hello-file) 0acfb7cea68 (Kim F. Storm 2006-04-28 636) #'call-process-shell-command) 318e2976570 (Kim F. Storm 2003-11-23 637) ;; otherwise use `grep-program' 0acfb7cea68 (Kim F. Storm 2006-04-28 638) (grep-probe grep-program 0acfb7cea68 (Kim F. Storm 2006-04-28 639) `(nil t nil "-nH" "^English" ,hello-file))) 318e2976570 (Kim F. Storm 2003-11-23 640) (progn 318e2976570 (Kim F. Storm 2003-11-23 641) (goto-char (point-min)) 318e2976570 (Kim F. Storm 2003-11-23 642) (looking-at 318e2976570 (Kim F. Storm 2003-11-23 643) (concat (regexp-quote hello-file) 318e2976570 (Kim F. Storm 2003-11-23 644) ":[0-9]+:English"))))))))) So the procedure is that the proposed command line (taken from grep-program) does not include -nH . User edits it to turn it into "git grep". Autodetection tries calling this(?) on the hello-file(?) which fails due to the hello-file not being in the Git repository. As a result, Emacs decides to use /dev/null (?). This code actually is considerably old, older than what I remember having worked (though it's sort of hard to tell since the results of autodetection are stored in a session). So I consider it more likely that the more recent 644cdd1aa0a (Noam Postavsky 2016-09-13 646) (when (eq grep-use-null-filename-separator 'auto-detect) 644cdd1aa0a (Noam Postavsky 2016-09-13 647) (setq grep-use-null-filename-separator 644cdd1aa0a (Noam Postavsky 2016-09-13 648) (with-temp-buffer 644cdd1aa0a (Noam Postavsky 2016-09-13 649) (let* ((hello-file (expand-file-name "HELLO" data-directory)) 644cdd1aa0a (Noam Postavsky 2016-09-13 650) (args `("--null" "-ne" "^English" ,hello-file))) 644cdd1aa0a (Noam Postavsky 2016-09-13 651) (if grep-use-null-device 644cdd1aa0a (Noam Postavsky 2016-09-13 652) (setq args (append args (list null-device))) 644cdd1aa0a (Noam Postavsky 2016-09-13 653) (push "-H" args)) 644cdd1aa0a (Noam Postavsky 2016-09-13 654) (and (grep-probe grep-program `(nil t nil ,@args)) 644cdd1aa0a (Noam Postavsky 2016-09-13 655) (progn 644cdd1aa0a (Noam Postavsky 2016-09-13 656) (goto-char (point-min)) 644cdd1aa0a (Noam Postavsky 2016-09-13 657) (looking-at 644cdd1aa0a (Noam Postavsky 2016-09-13 658) (concat (regexp-quote hello-file) 644cdd1aa0a (Noam Postavsky 2016-09-13 659) "\0[0-9]+:English")))))))) 644cdd1aa0a (Noam Postavsky 2016-09-13 660) is involved here. At any rate, the principal problem here is that "git grep" is a grep-like command that will usually refuse to work on out-of-tree files (unless --no-index option is given). So the results from any of the autodetection, based on searching the HELLO file, are sort-of random. -- David Kastrup From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 08 08:19:56 2018 Received: (at 32093) by debbugs.gnu.org; 8 Jul 2018 12:19:56 +0000 Received: from localhost ([127.0.0.1]:50712 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fc8fU-0004n1-Aj for submit@debbugs.gnu.org; Sun, 08 Jul 2018 08:19:56 -0400 Received: from mail-it0-f66.google.com ([209.85.214.66]:53444) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fc8fS-0004mn-VC for 32093@debbugs.gnu.org; Sun, 08 Jul 2018 08:19:55 -0400 Received: by mail-it0-f66.google.com with SMTP id a195-v6so21939846itd.3 for <32093@debbugs.gnu.org>; Sun, 08 Jul 2018 05:19:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=PAsNG03QEQLEMRE+f973uFxLG87M+JAhr7Go+Clx+Uo=; b=lcvLOCk7WvMXE4NI0pzBKOerukFklClaM5m8aEcqNsr2xD0x6UTRgvo88kWA2qYqk7 ji/D02uJk/ZTESkFm4HxndB62tKfP+idsZyTuNY3p/cHnpU8Z60BCydeOYYBTtsGzU9j y09MgVvjAbib7Wko7w9eWY+MZBtWtHHU7qdae163fHGPR+7obj5/0JyybtKHKG1jBcuW jGi5Y/I8qGtl6fA/SXLI7EUgdZU+4pyD8V3YBF2ziXuUNvvj9dKPg42snbBGFS+VP060 kRWriGpVErRNlj6yyMz4UKwv26qu+GQc6Br7NvCXwW9wSwAkAOHkI8895O1qE4qVcCY5 n5Jg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=PAsNG03QEQLEMRE+f973uFxLG87M+JAhr7Go+Clx+Uo=; b=ZXT8pA8d2emaSSupQsJxpOoxA0dmLM8XISAc/sWkUV9ckhl2vNi+liRAB02JZXSOTU OinT/7ZrEASnG4ZwUFV4jlW0dRJa4Du4hNJVHfWGCu/sec8mzv8jkHd7cSc/p7pD+afy 2s4W0JrdRVg3fiNTHNIBnFoMKLEDgWWi0ZMDSZTNKsAWQc0p5GhoVAfXrWrfm4zHO1jN ic0i3AKMbU01nDkxTidRkKP2I1dLqwDW3nbT62t0Vg07MJ2C6Rkg4oNBYv7KPZxPCim6 wpkI3wdi6q+8jfmxQzRxMVH3W6zV2FwRDA+9c22wk/69ENql4qUC3mgJOq+KwO0bSVqn LgqQ== X-Gm-Message-State: APt69E2fdQcGL0bKCAEOMNC3A2CntsNLnckMeYpnQUTVn3rXfXx2tKaz sNG0TEQKU1iIclnHM+aTA4mprA== X-Google-Smtp-Source: AAOMgpdxZ9pxxU7bLiiVa3rxWep0xF3c+dabQbViIi2mfCTU0I5QXpSijQLJYCWslEjEmsvuq9lwKA== X-Received: by 2002:a02:4c16:: with SMTP id a22-v6mr13323549jab.48.1531052389291; Sun, 08 Jul 2018 05:19:49 -0700 (PDT) Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id v190-v6sm5784672itc.30.2018.07.08.05.19.47 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 08 Jul 2018 05:19:48 -0700 (PDT) From: Noam Postavsky To: David Kastrup Subject: Re: bug#32093: 27.0.50; M-x grep appends /dev/null to command line References: <87lgamdqcb.fsf@fencepost.gnu.org> <87pnzyawdg.fsf@gmx.de> <87h8ladpem.fsf@fencepost.gnu.org> <87lgamavq7.fsf@gmx.de> <87d0vydli6.fsf@fencepost.gnu.org> Date: Sun, 08 Jul 2018 08:19:47 -0400 In-Reply-To: <87d0vydli6.fsf@fencepost.gnu.org> (David Kastrup's message of "Sun, 08 Jul 2018 13:17:53 +0200") Message-ID: <87va9pdin0.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 32093 Cc: 32093@debbugs.gnu.org, Michael Albinus 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 (-) David Kastrup writes: > This code actually is considerably old, older than what I remember > having worked (though it's sort of hard to tell since the results of > autodetection are stored in a session). So I consider it more likely > that the more recent > > 644cdd1aa0a (Noam Postavsky 2016-09-13 646) (when (eq grep-use-null-filename-separator 'auto-detect) > is involved here. At any rate, the principal problem here is that "git > grep" is a grep-like command that will usually refuse to work on > out-of-tree files (unless --no-index option is given). So the results > from any of the autodetection, based on searching the HELLO file, are > sort-of random. The reason for the current breakage is actually the changes to the HELLO file, the string "English" is no longer at the beginning of the line since [1: 3589c966b7]. The reason the auto detection previously worked, despite HELLO not being in the current git repository, is that the autodetection works with plain "grep", not "git grep". Autodetection happens before you get the prompt, so you haven't even typed in "git" yet. [1: 3589c966b7]: 2018-05-19 18:17:38 +0300 Use Enriched mode in etc/HELLO to keep charset information https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=3589c966b743850c29b89b83710783d4ea026770 From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 08 08:30:39 2018 Received: (at 32093) by debbugs.gnu.org; 8 Jul 2018 12:30:39 +0000 Received: from localhost ([127.0.0.1]:50718 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fc8pr-00054d-Eg for submit@debbugs.gnu.org; Sun, 08 Jul 2018 08:30:39 -0400 Received: from eggs.gnu.org ([208.118.235.92]:59201) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fc8pq-00054Q-6d for 32093@debbugs.gnu.org; Sun, 08 Jul 2018 08:30:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fc8ph-0003bs-Hd for 32093@debbugs.gnu.org; Sun, 08 Jul 2018 08:30:32 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:36527) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fc8ph-0003bo-ER; Sun, 08 Jul 2018 08:30:29 -0400 Received: from x4db54f11.dyn.telefonica.de ([77.181.79.17]:55792 helo=lola) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fc8pg-0005JD-S1; Sun, 08 Jul 2018 08:30:29 -0400 From: David Kastrup To: Noam Postavsky Subject: Re: bug#32093: 27.0.50; M-x grep appends /dev/null to command line References: <87lgamdqcb.fsf@fencepost.gnu.org> <87pnzyawdg.fsf@gmx.de> <87h8ladpem.fsf@fencepost.gnu.org> <87lgamavq7.fsf@gmx.de> <87d0vydli6.fsf@fencepost.gnu.org> <87va9pdin0.fsf@gmail.com> Date: Sun, 08 Jul 2018 14:30:26 +0200 In-Reply-To: <87va9pdin0.fsf@gmail.com> (Noam Postavsky's message of "Sun, 08 Jul 2018 08:19:47 -0400") Message-ID: <878t6lewpp.fsf@fencepost.gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 32093 Cc: 32093@debbugs.gnu.org, Michael Albinus 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: -6.0 (------) Noam Postavsky writes: > David Kastrup writes: > >> This code actually is considerably old, older than what I remember >> having worked (though it's sort of hard to tell since the results of >> autodetection are stored in a session). So I consider it more likely >> that the more recent >> >> 644cdd1aa0a (Noam Postavsky 2016-09-13 646) (when (eq >> grep-use-null-filename-separator 'auto-detect) > >> is involved here. At any rate, the principal problem here is that "git >> grep" is a grep-like command that will usually refuse to work on >> out-of-tree files (unless --no-index option is given). So the results >> from any of the autodetection, based on searching the HELLO file, are >> sort-of random. > > The reason for the current breakage is actually the changes to the HELLO > file, the string "English" is no longer at the beginning of the line > since [1: 3589c966b7]. Ok, that's actually funny. > The reason the auto detection previously worked, despite HELLO not > being in the current git repository, is that the autodetection works > with plain "grep", not "git grep". Autodetection happens before you > get the prompt, so you haven't even typed in "git" yet. So basically previously the proposed grep command line and autodetection was working for me since both system grep and git-grep support -H . Now while it makes sense to fix the HELLO file problem, I feel that it's sort of unfortunate that /dev/null is silently tacked onto the command line after user entry completes as opposed to the flags which are entered previous to that. But I don't have a good idea how to do that while giving the user something sensible and editable to work with. -- David Kastrup From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 08 15:04:48 2018 Received: (at 32093) by debbugs.gnu.org; 8 Jul 2018 19:04:48 +0000 Received: from localhost ([127.0.0.1]:51438 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fcEzI-000685-CV for submit@debbugs.gnu.org; Sun, 08 Jul 2018 15:04:48 -0400 Received: from eggs.gnu.org ([208.118.235.92]:53275) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fcEzG-00067s-Jk for 32093@debbugs.gnu.org; Sun, 08 Jul 2018 15:04:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fcEzA-0000dF-RX for 32093@debbugs.gnu.org; Sun, 08 Jul 2018 15:04:41 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:41034) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fcEz5-0000aV-2n; Sun, 08 Jul 2018 15:04:35 -0400 Received: from [176.228.60.248] (port=2864 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fcEz4-0005S4-9B; Sun, 08 Jul 2018 15:04:34 -0400 Date: Sun, 08 Jul 2018 22:04:40 +0300 Message-Id: <83pnzxh7lj.fsf@gnu.org> From: Eli Zaretskii To: Noam Postavsky In-reply-to: <87va9pdin0.fsf@gmail.com> (message from Noam Postavsky on Sun, 08 Jul 2018 08:19:47 -0400) Subject: Re: bug#32093: 27.0.50; M-x grep appends /dev/null to command line References: <87lgamdqcb.fsf@fencepost.gnu.org> <87pnzyawdg.fsf@gmx.de> <87h8ladpem.fsf@fencepost.gnu.org> <87lgamavq7.fsf@gmx.de> <87d0vydli6.fsf@fencepost.gnu.org> <87va9pdin0.fsf@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 32093 Cc: 32093@debbugs.gnu.org, dak@gnu.org, michael.albinus@gmx.de 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: -6.0 (------) > From: Noam Postavsky > Date: Sun, 08 Jul 2018 08:19:47 -0400 > Cc: 32093@debbugs.gnu.org, Michael Albinus > > file, the string "English" is no longer at the beginning of the line > since [1: 3589c966b7]. Oops! But is there a good reason why we use HELLO for that? Why not README, say, whose first line will always start with "Copyright"? From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 08 15:12:04 2018 Received: (at 32093) by debbugs.gnu.org; 8 Jul 2018 19:12:04 +0000 Received: from localhost ([127.0.0.1]:51444 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fcF6K-0006IA-52 for submit@debbugs.gnu.org; Sun, 08 Jul 2018 15:12:04 -0400 Received: from eggs.gnu.org ([208.118.235.92]:53949) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fcF6H-0006Hf-Ar for 32093@debbugs.gnu.org; Sun, 08 Jul 2018 15:12:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fcF6B-0003KZ-5r for 32093@debbugs.gnu.org; Sun, 08 Jul 2018 15:11:55 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:41113) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fcF66-0003Ih-82; Sun, 08 Jul 2018 15:11:50 -0400 Received: from x4db54f11.dyn.telefonica.de ([77.181.79.17]:60532 helo=lola) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fcF65-0001PM-JS; Sun, 08 Jul 2018 15:11:49 -0400 From: David Kastrup To: Eli Zaretskii Subject: Re: bug#32093: 27.0.50; M-x grep appends /dev/null to command line References: <87lgamdqcb.fsf@fencepost.gnu.org> <87pnzyawdg.fsf@gmx.de> <87h8ladpem.fsf@fencepost.gnu.org> <87lgamavq7.fsf@gmx.de> <87d0vydli6.fsf@fencepost.gnu.org> <87va9pdin0.fsf@gmail.com> <83pnzxh7lj.fsf@gnu.org> Date: Sun, 08 Jul 2018 21:11:47 +0200 In-Reply-To: <83pnzxh7lj.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 08 Jul 2018 22:04:40 +0300") Message-ID: <87va9pczkc.fsf@fencepost.gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 32093 Cc: 32093@debbugs.gnu.org, michael.albinus@gmx.de, Noam Postavsky 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: -6.0 (------) Eli Zaretskii writes: >> From: Noam Postavsky >> Date: Sun, 08 Jul 2018 08:19:47 -0400 >> Cc: 32093@debbugs.gnu.org, Michael Albinus >> >> file, the string "English" is no longer at the beginning of the line >> since [1: 3589c966b7]. > > Oops! > > But is there a good reason why we use HELLO for that? Why not README, > say, whose first line will always start with "Copyright"? Not if the FSF's mission is wildly successful. But we could still change the README to state Copyright, like to any other software, no longer applies to this file. which would keep the test working. -- David Kastrup From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 09 17:43:56 2018 Received: (at 32093) by debbugs.gnu.org; 9 Jul 2018 21:43:56 +0000 Received: from localhost ([127.0.0.1]:52823 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fcdwq-00054o-B9 for submit@debbugs.gnu.org; Mon, 09 Jul 2018 17:43:56 -0400 Received: from mail-it0-f50.google.com ([209.85.214.50]:34017) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fcdwo-00054X-Gx for 32093@debbugs.gnu.org; Mon, 09 Jul 2018 17:43:54 -0400 Received: by mail-it0-f50.google.com with SMTP id d191-v6so12996898ite.1 for <32093@debbugs.gnu.org>; Mon, 09 Jul 2018 14:43:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=ERwHA2N0U5/LLxkFcRE6Y8sILwWigXDj6u/mLN235rk=; b=gpmwQrY4YCDNMWVupbBqq3jtcf9kiFIaf/A1Gtvwz4q9O9VeSh3prNUD3E9cs+/GO/ e4c05aKAxiVkhnEruFNouD+fz0bZdCMtTFEnzSyta3P7VsJ0bxO1bJPr/WWzailjvRzX NHdZIO6rsiVCsw0td5K6JmfXKRKkjXBB4aCye0n3Y2L/3Jn6qj0B3tY9rq7FWWyU/iIU EbYfPw1T66LGo0Zul65KRrJa1HBdZQyDbBJjKBS5ykqRxu9fXBiTuUwF7qPDIJuMmQnp sPnOQyHbEpQbP+OaWfT8cx2WcBt/OerKfkQr7Yh/uSPvesJ5SLpcZwzmDHFi+FtqRh0D w1iA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=ERwHA2N0U5/LLxkFcRE6Y8sILwWigXDj6u/mLN235rk=; b=lqgYK4TEuKC5QsXiKIonx05woHOub4wr28g2n4Lj33OzOj27++j3AbctDiBO/Pliuv OfS7nurzbmCmNPJpVCfhiIbYdmcoyulDVZmZWJakvovg6aSmVDscgyP/H/rdo+WA1i6U jWU0sdvN0LtfTSUJZ5f75DXqkpHPFmTB/deZMUbgNuPrzE2As62hW+8szZoFzPFbHb2P KNqlClvQ8z0+R/KLMr8zIqjJhvKOPBHXORTDn5vs/HBnLNMfLL8PKqO3SWh4vX04/Z57 rw0lKcnLUQZPselbpOG/S2yE6JJc1oyCU9Zm3f++8Bzn7F1+aYhaEkxOLnutqqXMZ+4R u2WA== X-Gm-Message-State: APt69E39zgbzzjrDtZenOt1nrmO0P6zEHqW8RlsMSswHOLSuHmG1UGH6 fJcE4coJLcmaxoxMW2+uWXo= X-Google-Smtp-Source: AAOMgpc1Q0gjKxP1/okiXDOeR9wgV2wbQsd8BVGq9w/eZ7beu1bJ4d+v6NWUHxMEkeg+av3D77PxuQ== X-Received: by 2002:a02:35a:: with SMTP id y87-v6mr18678776jad.2.1531172629028; Mon, 09 Jul 2018 14:43:49 -0700 (PDT) Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id l201-v6sm8517634ita.3.2018.07.09.14.43.46 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 09 Jul 2018 14:43:48 -0700 (PDT) From: Noam Postavsky To: Eli Zaretskii Subject: Re: bug#32093: 27.0.50; M-x grep appends /dev/null to command line References: <87lgamdqcb.fsf@fencepost.gnu.org> <87pnzyawdg.fsf@gmx.de> <87h8ladpem.fsf@fencepost.gnu.org> <87lgamavq7.fsf@gmx.de> <87d0vydli6.fsf@fencepost.gnu.org> <87va9pdin0.fsf@gmail.com> <83pnzxh7lj.fsf@gnu.org> Date: Mon, 09 Jul 2018 17:43:46 -0400 In-Reply-To: <83pnzxh7lj.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 08 Jul 2018 22:04:40 +0300") Message-ID: <87pnzwccfh.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 32093 Cc: 32093@debbugs.gnu.org, dak@gnu.org, michael.albinus@gmx.de 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 (-) --=-=-= Content-Type: text/plain Eli Zaretskii writes: > But is there a good reason why we use HELLO for that? Why not README, > say, whose first line will always start with "Copyright"? I don't think there's a reason to use HELLO in particular. etc/README doesn't have Copyright on the first line, but it does have COPYRIGHT at the beginning of a line (I think we do want something specifically in etc/, because we know `data-directory' tells us where to find it). --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=v1-0001-Use-README-instead-of-HELLO-for-grep-probing-Bug-.patch Content-Description: patch >From 3b0f302b7d06c37cc6fbff2f1e18904020de51f2 Mon Sep 17 00:00:00 2001 From: Noam Postavsky Date: Mon, 9 Jul 2018 17:38:40 -0400 Subject: [PATCH v1] Use README instead of HELLO for grep probing (Bug#32093) * lisp/progmodes/grep.el (grep-compute-defaults): Check README for the string COPYRIGHT; HELLO no longer has "English" at the beginning of a line since 2018-05-19 "Use Enriched mode in etc/HELLO to keep charset information". --- lisp/progmodes/grep.el | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lisp/progmodes/grep.el b/lisp/progmodes/grep.el index b7c44d6083..b466e205b8 100644 --- a/lisp/progmodes/grep.el +++ b/lisp/progmodes/grep.el @@ -626,28 +626,28 @@ grep-compute-defaults (unless (or (not grep-use-null-device) (eq grep-use-null-device t)) (setq grep-use-null-device (with-temp-buffer - (let ((hello-file (expand-file-name "HELLO" data-directory))) + (let ((hello-file (expand-file-name "README" data-directory))) (not (and (if grep-command ;; `grep-command' is already set, so ;; use that for testing. (grep-probe grep-command - `(nil t nil "^English" ,hello-file) + `(nil t nil "^COPYRIGHT" ,hello-file) #'call-process-shell-command) ;; otherwise use `grep-program' (grep-probe grep-program - `(nil t nil "-nH" "^English" ,hello-file))) + `(nil t nil "-nH" "^COPYRIGHT" ,hello-file))) (progn (goto-char (point-min)) (looking-at (concat (regexp-quote hello-file) - ":[0-9]+:English"))))))))) + ":[0-9]+:COPYRIGHT"))))))))) (when (eq grep-use-null-filename-separator 'auto-detect) (setq grep-use-null-filename-separator (with-temp-buffer - (let* ((hello-file (expand-file-name "HELLO" data-directory)) - (args `("--null" "-ne" "^English" ,hello-file))) + (let* ((hello-file (expand-file-name "README" data-directory)) + (args `("--null" "-ne" "^COPYRIGHT" ,hello-file))) (if grep-use-null-device (setq args (append args (list null-device))) (push "-H" args)) @@ -656,7 +656,7 @@ grep-compute-defaults (goto-char (point-min)) (looking-at (concat (regexp-quote hello-file) - "\0[0-9]+:English")))))))) + "\0[0-9]+:COPYRIGHT")))))))) (when (eq grep-highlight-matches 'auto-detect) (setq grep-highlight-matches -- 2.11.0 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 09 19:10:17 2018 Received: (at 32093) by debbugs.gnu.org; 9 Jul 2018 23:10:17 +0000 Received: from localhost ([127.0.0.1]:52850 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fcfIP-00074r-JN for submit@debbugs.gnu.org; Mon, 09 Jul 2018 19:10:17 -0400 Received: from mail-io0-f169.google.com ([209.85.223.169]:43283) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fcfIN-00074Z-Uf; Mon, 09 Jul 2018 19:10:16 -0400 Received: by mail-io0-f169.google.com with SMTP id y10-v6so3780254ioa.10; Mon, 09 Jul 2018 16:10:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=/hMAQ5I+BV9FDZXc6UgOtCrqy/hTCON45kiEFZgaxdA=; b=qZgynxbRCkshymaMdkoJdiwx25N60ed4UBBK/BV+Zrms51wQ9aMXlLbZ8OGYAYnjKx zW/Iy3yR7XTpEzkc9Iw9BCUZiov1bRyQhnxhp59sKO9z59+h8Luhy4dwHMDUQcyr+cSS kH+4N6E6HCQ5VvSjM7UNhpiWdPMVEjiNE4m4k2RqSp/sslXOH1I6poKmRNktHcrHlBA2 qa1lff4llxpotGgLfvdVQ+/OrRmXGwFGI5EHSJoofQMUDNjzmwB5CPJOkvCNw/l2Yh7M T18mAbpPgjmWHetzC8fRrLTx+7Kprmqz7EshTt9nmXJhMdYgd8BJ+/kffnihGhCJqy9N ofVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=/hMAQ5I+BV9FDZXc6UgOtCrqy/hTCON45kiEFZgaxdA=; b=Gvb6k608Nxu5HbBDJEMNI37kZdoto/o9FPYu/F1iTpwWk/OVZ/n5tqE8LSs9HNqqVC 2CBujBVhP73pJz0Ywb2KOWESdQB+e/p99ay01ZJiWHqAjzBpyrTLa94YnC7eNAMjXHtU m79tEElxeGUIn3lvZ0t2ocmlWbXM5y1RY3c/rdWXqGac3LCTsDeIBahxAG8IdMnXPMC4 xdc0M6/mTzBuQevjpY7IbSPsbCbaOCzNUYLfUHKmmuySzTxtFcAB+0puZSvSqsCXrkhC jYPyMruWAh646ol5KANScRQaRiElKaoZlTpljcdXNYwjwU/iO2Uh+ran8nswmpFC2g1s J53Q== X-Gm-Message-State: AOUpUlHiQzen0Y6CohcgJeoqVFwsNMTqqej+9a1Qe680vIn5o0oLc6T2 LkKs10BeeMuaKbp7fzWQPmbmYg== X-Google-Smtp-Source: AAOMgpc/X+nfA7F3nLv6tsPe0/2L+5GE1+AhSfvtK/bW4rZuKsUQlzrDa6vKRJCSXhBWm85V+a8+UQ== X-Received: by 2002:a6b:1746:: with SMTP id 67-v6mr20446728iox.292.1531177810372; Mon, 09 Jul 2018 16:10:10 -0700 (PDT) Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id t62-v6sm2673168iof.16.2018.07.09.16.10.09 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 09 Jul 2018 16:10:09 -0700 (PDT) From: Noam Postavsky To: Eli Zaretskii Subject: Re: bug#32093: 27.0.50; M-x grep appends /dev/null to command line References: <87lgamdqcb.fsf@fencepost.gnu.org> <87pnzyawdg.fsf@gmx.de> <87h8ladpem.fsf@fencepost.gnu.org> <87lgamavq7.fsf@gmx.de> <87d0vydli6.fsf@fencepost.gnu.org> <87va9pdin0.fsf@gmail.com> <83pnzxh7lj.fsf@gnu.org> Date: Mon, 09 Jul 2018 19:10:08 -0400 In-Reply-To: <83pnzxh7lj.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 08 Jul 2018 22:04:40 +0300") Message-ID: <87muv0c8fj.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 32093 Cc: 32093@debbugs.gnu.org, dak@gnu.org, michael.albinus@gmx.de 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 (-) tags 32093 fixed close 32093 quit Eli Zaretskii writes: > But is there a good reason why we use HELLO for that? Why not README, > say, whose first line will always start with "Copyright"? I see Paul fixed this by searching for "Copyright" in HELLO. [9d09ced1d5]: 2018-07-08 10:01:33 -0700 Fix etc/HELLO searching in grep.el https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=9d09ced1d5d124893fbe9c176f821f6716e91392 From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 10 03:33:44 2018 Received: (at 32093) by debbugs.gnu.org; 10 Jul 2018 07:33:44 +0000 Received: from localhost ([127.0.0.1]:53008 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fcn9c-00088e-7v for submit@debbugs.gnu.org; Tue, 10 Jul 2018 03:33:44 -0400 Received: from eggs.gnu.org ([208.118.235.92]:43535) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fcn9b-00088T-80 for 32093@debbugs.gnu.org; Tue, 10 Jul 2018 03:33:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fcn9V-0008Qs-AY for 32093@debbugs.gnu.org; Tue, 10 Jul 2018 03:33:38 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:55066) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fcn9P-0008Po-P5; Tue, 10 Jul 2018 03:33:31 -0400 Received: from x4e304007.dyn.telefonica.de ([78.48.64.7]:47132 helo=lola) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fcn9P-0001nF-2E; Tue, 10 Jul 2018 03:33:31 -0400 From: David Kastrup To: Noam Postavsky Subject: Re: bug#32093: 27.0.50; M-x grep appends /dev/null to command line References: <87lgamdqcb.fsf@fencepost.gnu.org> <87pnzyawdg.fsf@gmx.de> <87h8ladpem.fsf@fencepost.gnu.org> <87lgamavq7.fsf@gmx.de> <87d0vydli6.fsf@fencepost.gnu.org> <87va9pdin0.fsf@gmail.com> <83pnzxh7lj.fsf@gnu.org> <87pnzwccfh.fsf@gmail.com> Date: Tue, 10 Jul 2018 09:33:29 +0200 In-Reply-To: <87pnzwccfh.fsf@gmail.com> (Noam Postavsky's message of "Mon, 09 Jul 2018 17:43:46 -0400") Message-ID: <87o9ffv92u.fsf@fencepost.gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 32093 Cc: Eli Zaretskii , michael.albinus@gmx.de, 32093@debbugs.gnu.org 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: -6.0 (------) Noam Postavsky writes: >>>From 3b0f302b7d06c37cc6fbff2f1e18904020de51f2 Mon Sep 17 00:00:00 2001 > From: Noam Postavsky > Date: Mon, 9 Jul 2018 17:38:40 -0400 > Subject: [PATCH v1] Use README instead of HELLO for grep probing (Bug#32093) > > * lisp/progmodes/grep.el (grep-compute-defaults): Check README for the > string COPYRIGHT; HELLO no longer has "English" at the beginning of a > line since 2018-05-19 "Use Enriched mode in etc/HELLO to keep charset > information". > --- > lisp/progmodes/grep.el | 14 +++++++------- > 1 file changed, 7 insertions(+), 7 deletions(-) > > diff --git a/lisp/progmodes/grep.el b/lisp/progmodes/grep.el > index b7c44d6083..b466e205b8 100644 > --- a/lisp/progmodes/grep.el > +++ b/lisp/progmodes/grep.el > @@ -626,28 +626,28 @@ grep-compute-defaults > (unless (or (not grep-use-null-device) (eq grep-use-null-device t)) > (setq grep-use-null-device > (with-temp-buffer > - (let ((hello-file (expand-file-name "HELLO" data-directory))) > + (let ((hello-file (expand-file-name "README" data-directory))) Using `hello-file' for indicating "README" does not particularly help reading comprehension. -- David Kastrup From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 10 11:55:27 2018 Received: (at 32093) by debbugs.gnu.org; 10 Jul 2018 15:55:27 +0000 Received: from localhost ([127.0.0.1]:54195 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fcuz9-0000GP-FZ for submit@debbugs.gnu.org; Tue, 10 Jul 2018 11:55:27 -0400 Received: from eggs.gnu.org ([208.118.235.92]:56514) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fcuz7-0000GB-Ua for 32093@debbugs.gnu.org; Tue, 10 Jul 2018 11:55:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fcuyz-0007hU-MR for 32093@debbugs.gnu.org; Tue, 10 Jul 2018 11:55:20 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:33187) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fcuyx-0007de-66; Tue, 10 Jul 2018 11:55:15 -0400 Received: from [176.228.60.248] (port=4608 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fcuyw-0004DX-Eb; Tue, 10 Jul 2018 11:55:14 -0400 Date: Tue, 10 Jul 2018 18:55:25 +0300 Message-Id: <834lh7gk5u.fsf@gnu.org> From: Eli Zaretskii To: Noam Postavsky In-reply-to: <87pnzwccfh.fsf@gmail.com> (message from Noam Postavsky on Mon, 09 Jul 2018 17:43:46 -0400) Subject: Re: bug#32093: 27.0.50; M-x grep appends /dev/null to command line References: <87lgamdqcb.fsf@fencepost.gnu.org> <87pnzyawdg.fsf@gmx.de> <87h8ladpem.fsf@fencepost.gnu.org> <87lgamavq7.fsf@gmx.de> <87d0vydli6.fsf@fencepost.gnu.org> <87va9pdin0.fsf@gmail.com> <83pnzxh7lj.fsf@gnu.org> <87pnzwccfh.fsf@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 32093 Cc: 32093@debbugs.gnu.org, dak@gnu.org, michael.albinus@gmx.de 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: -6.0 (------) > From: Noam Postavsky > Cc: 32093@debbugs.gnu.org, dak@gnu.org, michael.albinus@gmx.de > Date: Mon, 09 Jul 2018 17:43:46 -0400 > > > But is there a good reason why we use HELLO for that? Why not README, > > say, whose first line will always start with "Copyright"? > > I don't think there's a reason to use HELLO in particular. etc/README > doesn't have Copyright on the first line, but it does have COPYRIGHT at > the beginning of a line (I think we do want something specifically in > etc/, because we know `data-directory' tells us where to find it). I meant the top-level README, which I think always will include a Copyright line. But that was just a suggestion. I see Paul decided to continue using etc/HELLO, just with a different search patterns. If we are OK with that, we can put that issue to rest. There's still a broader issue of whether a test done with plain 'grep' holds for any other "grep-like" program. I'm not sure what to do with that. We could even take one more step back and ask ourselves why do we need this particular test. I believe it's because we want to support file names with embedded newlines, in which case perhaps such niche use cases could be supported by a special command or a special user option? I mean, it sounds strange to let a tail wag the dog, no? From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 10 18:05:08 2018 Received: (at 32093) by debbugs.gnu.org; 10 Jul 2018 22:05:08 +0000 Received: from localhost ([127.0.0.1]:54397 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fd0kt-0004pD-SJ for submit@debbugs.gnu.org; Tue, 10 Jul 2018 18:05:08 -0400 Received: from mail-io0-f173.google.com ([209.85.223.173]:44152) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fd0ks-0004oi-Uo for 32093@debbugs.gnu.org; Tue, 10 Jul 2018 18:05:07 -0400 Received: by mail-io0-f173.google.com with SMTP id q19-v6so21816068ioh.11 for <32093@debbugs.gnu.org>; Tue, 10 Jul 2018 15:05:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=gmnOPyrHwBd5HEz9sE0o7sOJYFPqDCV1HQdIm2YAGGc=; b=XHhe7iEhpIu2HW2uqpu8hkaQVvTNWqEMwTGLK8QtL8SJ+9JwNX2bv2R+u54xhPyYg9 x5ozRMwo9jZzZ740NKjsw6mxhiIIOwlKmQSKgI57C11C3DKQCTpZ9ZyZwBC0SQqA+WT9 9uuh2iOWkRPuQIRthl341JP6pmNUDiNrYr8/1IFAcIBs2G6Hh7TwEk2mxQ+Vnir2+e/L 3Sl1ZYORTdHv4zBr1AutA830tOnE0wfeHN5lNGxMQKC9KqgZAc54Ume/z5iCujX3e8sO J8NloTxVul6i+N284VomuawmmYaLdVPYdO+a8yqmzgH0la1wB7VHrNCbtERam3in0+CP Iyqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=gmnOPyrHwBd5HEz9sE0o7sOJYFPqDCV1HQdIm2YAGGc=; b=LjjSfOzqZBFrI/botFUDzFZZ8HUz6fzIARXTNoypvFMwiB5VVqDbNRBpm6VYj1mwpz fXR44QhFlOeibl+xnj4Xw939MKGgvmtJk4MT9nJsvJB/oZJBJ9uG3TG4HXTOtRSZdnbx QrxiKsK2B4/H1Z6oLSeHB1LRANySLVZIHFku/OiFVP3437VmSStfme4IdUOu9ArV6J4H wXRAAHKAJf/X7uzgJk+9uIuwxoxqCEUa+wenDhalzOv59zqNuu7sQfgdd3CNYGs1UXg4 CqjzjM2nIClz+CU9WECa8z6x7bYfNeIykJK+DJ5//4yAUjKlQ6f3cYlKaWg65IqWlFB0 eW7g== X-Gm-Message-State: AOUpUlEPkE0WASKaA/4BXgONsRyJuH52s89eb9yBLKuCSVFrh22Qcl40 eMILEIC2vX7nD9SqNxZUj3g= X-Google-Smtp-Source: AAOMgpc0/BtGnQPiDL8hzgs1zANJJLtlPFW5zWxQmrJwlQ6Jt2rpa6mHh02EKDjU0mqM9/l4QbXGqQ== X-Received: by 2002:a6b:ab87:: with SMTP id u129-v6mr23028585ioe.30.1531260301434; Tue, 10 Jul 2018 15:05:01 -0700 (PDT) Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id t67-v6sm8005633ita.3.2018.07.10.15.04.59 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 10 Jul 2018 15:05:00 -0700 (PDT) From: Noam Postavsky To: Eli Zaretskii Subject: Re: bug#32093: 27.0.50; M-x grep appends /dev/null to command line References: <87lgamdqcb.fsf@fencepost.gnu.org> <87pnzyawdg.fsf@gmx.de> <87h8ladpem.fsf@fencepost.gnu.org> <87lgamavq7.fsf@gmx.de> <87d0vydli6.fsf@fencepost.gnu.org> <87va9pdin0.fsf@gmail.com> <83pnzxh7lj.fsf@gnu.org> <87pnzwccfh.fsf@gmail.com> <834lh7gk5u.fsf@gnu.org> Date: Tue, 10 Jul 2018 18:04:58 -0400 In-Reply-To: <834lh7gk5u.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 10 Jul 2018 18:55:25 +0300") Message-ID: <871scad9x1.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 32093 Cc: 32093@debbugs.gnu.org, dak@gnu.org, michael.albinus@gmx.de 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 July 2018 at 11:55, Eli Zaretskii wrote: > But that was just a suggestion. I see Paul decided to continue using > etc/HELLO, just with a different search patterns. If we are OK with > that, we can put that issue to rest. Yeah, I don't think it really matters whether we search etc/HELLO or README. > We could even take one more step back and ask ourselves why do we need > this particular test. I believe it's because we want to support file > names with embedded newlines, in which case perhaps such niche use > cases could be supported by a special command or a special user > option? I don't think it's about newlines in filenames (in fact, grep-regexp-alist doesn't support that regardless). As far as I can tell, the HELLO test is checking whether we can pass -H to get the filename together with the matches, or if we need to pass multiple files to do that. To do without -H, we would need to handle matches in both formats which would make the matching regexp more complicated, and we would need to be able to extract the filename from the shell command that the user types in. That would be quite difficult to do correctly in general. From unknown Sun Jun 22 00:21:07 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 08 Aug 2018 11:24:08 +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