From unknown Thu Jun 19 13:58:08 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#69261 <69261@debbugs.gnu.org> To: bug#69261 <69261@debbugs.gnu.org> Subject: Status: 'ls' : --ignore does not apply on FILEs selection Reply-To: bug#69261 <69261@debbugs.gnu.org> Date: Thu, 19 Jun 2025 20:58:08 +0000 retitle 69261 'ls' : --ignore does not apply on FILEs selection reassign 69261 coreutils submitter 69261 Mathias MICHEL severity 69261 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 18 22:19:00 2024 Received: (at submit) by debbugs.gnu.org; 19 Feb 2024 03:19:00 +0000 Received: from localhost ([127.0.0.1]:40077 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rbuBH-0008I0-3b for submit@debbugs.gnu.org; Sun, 18 Feb 2024 22:19:00 -0500 Received: from lists.gnu.org ([209.51.188.17]:49386) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rbpKR-0005dB-1M for submit@debbugs.gnu.org; Sun, 18 Feb 2024 17:08:08 -0500 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 1rbpK5-0001bD-SN for bug-coreutils@gnu.org; Sun, 18 Feb 2024 17:07:46 -0500 Received: from mout.gmx.net ([212.227.15.18]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rbpK4-00013J-1R for bug-coreutils@gnu.org; Sun, 18 Feb 2024 17:07:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.fr; s=s31663417; t=1708294060; x=1708898860; i=matm@gmx.fr; bh=xxVYF8PbCgPwK/OX6rxpem94ZO/ZOHUD9Ot2nsPAjNY=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date; b=qbCbIsBOlK/edxkBJEMTGrb+1bbckQ4fg4/V4cMKgr6IXRYdyN/tZgWZwYhcDcGc m/Xd+4dZZ3+MVNqx8ocDl/nRXCHKBW+8eT22xgorpqw4ai6eePfiKGX7uhZ7Tqi+D 8DPqdWbbs/AsYfPT1WVPBxTjnJAKjmgcpImrU6kVbUp0FlAulFrws8e973keCG9cV npIQ1s6bv2JTUSPF3hc65HC5Zli1xCG+jD3AZnlpKPtI7Nn5kwTV+ogJvWNfvPB5j 8eAl8WdCu0/bhlAVZnyl8GrZ5to94ZjCVrZDTfYYrazn/OncofQL6ZggoOX3o63J5 bP2VHLF+9lq7D9OPOw== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from grenier.mcxi.eu ([88.161.181.155]) by mail.gmx.net (mrgmx004 [212.227.17.184]) with ESMTPSA (Nemesis) id 1MI5UD-1rgzaF0nEF-00F8aw for ; Sun, 18 Feb 2024 23:07:40 +0100 From: Mathias MICHEL To: bug-coreutils@gnu.org Subject: 'ls' : --ignore does not apply on FILEs selection Message-ID: <20240218220739.Horde.3QvqAlNN0q_OhfYP-ZBJJra@grenier.mcxi.eu> User-Agent: Horde Application Framework 5 Date: Sun, 18 Feb 2024 22:07:39 +0000 Content-Type: multipart/alternative; boundary="=_zcWXFzZSzq6u-Zd-A9xdQJ4" MIME-Version: 1.0 X-Provags-ID: V03:K1:r2E9sZqdh1FG4xQj6XBe5nJKfVBCNLMxSybxE4LaUw50UxUzLTQ D0f5BMTnOkJSMb4ieZPnM/uVdwC6iESGDiUG5kiu5w8x1EAL4vt9cp87ndNcNmkGkgAmMkX P23ALhvbkPAtFbR9mKBf906l+DFHy6+rPeX31W3DCjD2eC4OyuNbAV7CCoGz6sKz/DhV75x yUsWRhElr84Ju1BqwS3ng== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:XLIjv3u30Bk=;fQWbXvOB6qwQbrtwL6VJe07buA6 BDSJEZB8/y3Vbjq/W3Q/qRTE7YCAW9/PzPqUqVrB4tuSSehNhPqeJv40/bE46fWLKPy3UwkB9 /WCh16sI+RZtaMyKmYBw9bXUyFWmZ2eOg+c33Ilt9vleHhW2WzLvYYSGiPiTPJOzOLQC0m87w DkUTxucGCBAFHUJugybCs4zYLJ7qCZBwav3xffz6xvDxKv+Pz7H8OhsLxz4M27ZZmXoC9Z0ei OXvQMwef0tDHJCP0cvkvHPI5u8Yp65FZZ3tkIp7PP0CUAKckkLp5pxGsCto7xrk4LEcq8TTdL ljFb3D6mOzI+e3ZjS+NW4SuzuqQM/mWRq/Pj/eH77Dvz0pbj59j1ET/WIhTBTfFQZnnp2ooda mk+K0FmI7fuhK1oKckPcd5fzDUcps6ThO5Zl0GL89xd7vt0WiHGcpeR97qMO4FWIw+gcuYALX m8RIn49LUoJeJss9oNHr/hUOaclnpKioDPXcjvFSMOl/oyvRgoDXyMAHCqY4YCFKENKBX7+t7 YMWST6qdnLECZ5SPkqHgeG9LQte3YZEny4wXnKB1kNA+W7UIGua625AeaUiu/jPa8NNnNY2+1 oa5W9KmtkWB5QVkLWulD5sS+Jj2nN7bhQozxQZJesre85bGZhYnT5XkVbG0fdOb/91iAIrE4A OCt2H0TywNCBbBaUJQNsAuI32teQu41cHZyXt53YGIigduR1Bjujl83v19vEnVy2WAq3g0lFt xxEvdNJcVLqLV3Yt3FQmw1mcVQPUqyb3R7SXgW1R83DI6ok8u/Sd6WhXT90biGItxKKOmlMqa AOKXzhhWLUc6E6jbd4qkMi/1RJB6Gz93+IERdpMPThhQuVCJOW7LK/6om+tg5LilsWvSMd4Uo vtGFiErCwMBRHVQ9Fut7XDZsoQOKs5UMNaPpxKdxbediDqocOIju3IVU77d2qIo8JAYr67mGJ fWkArw== Received-SPF: pass client-ip=212.227.15.18; envelope-from=matm@gmx.fr; helo=mout.gmx.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.5 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sun, 18 Feb 2024 22:18:58 -0500 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: -4.5 (----) This message is in MIME format. --=_zcWXFzZSzq6u-Zd-A9xdQJ4 Content-Type: text/plain; charset=utf-8 Content-Description: Plaintext Version of Message Content-Transfer-Encoding: quoted-printable Hello, Is it expected that --ignore arg does not apply on globbed FILE ? My goal is to avoid using grep or complex find args: > ~/.ssh :: ls id_ed* | grep -v "\.pub$"id_ed25519id_ed25519.localid_ed25519_ori > ~/.ssh:: find . '!' -name '*.pub' -name "id_ed*"./id_ed25519_ori./id_ed25519.local./id_ed25519 I tried -I (--ignore) and --hide : > ~/.ssh:: ls -I"*.pub" id_ed* =C2=A0 =C2=A0=C2=A0id_ed25519 =C2=A0id_ed25= 519.local =C2=A0id_ed25519.local.pub =C2=A0id_ed25519_ori =C2=A0id_ed25519_ori.pub=C2=A0=C2=A0=C2=A0=C2=A0id_ed25519.pub> ~/.ssh:: l= s --hide "*.pub" id_ed* =C2=A0 =C2=A0id_ed25519 =C2=A0id_ed25519.local =C2=A0id_ed25519.loc= al.pub =C2=A0id_ed25519_ori =C2=A0id_ed25519_ori.pub=C2=A0=C2=A0=C2=A0=C2=A0id_ed= 25519.pub Since help text says for both options is :=C2=A0do not list implied entrie= s matching shell PATTERN I would expect it to occur after building the initial listing. When I remove the globbing pattern, it seems to work as expected: ~/.ssh:: ls -I "*.pub" ./config=C2=A0=C2=A0=C2=A0=C2=A0id_ed25519 =C2=A0id= _ed25519.local =C2=A0id_ed25519_ori =C2=A0id_rsa.local =C2=A0known_hosts =C2=A0known_host= s.old~/.ssh:: ls -I "*.pub"config=C2=A0=C2=A0=C2=A0=C2=A0id_ed25519 =C2=A0id_ed25519.local = =C2=A0id_ed25519_ori =C2=A0id_rsa.local =C2=A0known_hosts =C2=A0known_hosts.old Man page says nothing about conflicts with file globbing.=C2=A0My view is obviously that this is a miss, what are yours ? Thanks for your feedback-- Mathias M --=_zcWXFzZSzq6u-Zd-A9xdQJ4 Content-Type: text/html; charset=utf-8 Content-Description: HTML Version of Message Content-Transfer-Encoding: quoted-printable

Hello,

Is it exp= ected that --ignore arg does not apply on globbed FILE ?

My goal is to avoid using grep or complex find args:

> ~/.ssh :: ls id_ed* | grep -v "\.pub$"
id_ed25519
id= _ed25519.local
id_ed25519_ori

> ~/.ssh:: fi= nd . '!' -name '*.pub' -name "id_ed*"
./id_ed25519_ori
./id_ed25519.l= ocal
./id_ed25519


I tried -I (--ignore) an= d --hide :

> ~/.ssh:: ls -I"*.pub" id_ed* =C2= =A0 =C2=A0=C2=A0
id_ed25519 =C2=A0id_ed25519.local =C2=A0id_ed25519.loca= l.pub =C2=A0id_ed25519_ori =C2=A0id_ed25519_ori.pub=C2=A0=C2=A0=C2=A0=C2=A0= id_ed25519.pub
> ~/.ssh:: ls --hide "*.pub" id_ed* =C2=A0 =C2=A0
i= d_ed25519 =C2=A0id_ed25519.local =C2=A0id_ed25519.local.pub =C2=A0id_ed2551= 9_ori =C2=A0id_ed25519_ori.pub=C2=A0=C2=A0=C2=A0=C2=A0id_ed25519.pub

Since help text says for both options is :
=C2=A0do = not list implied entries matching shell PATTERN

I= would expect it to occur after building the initial listing.

When I remove the globbing pattern, it seems to work as expe= cted:

~/.ssh:: ls -I "*.pub" ./
config=C2=A0= =C2=A0=C2=A0=C2=A0id_ed25519 =C2=A0id_ed25519.local =C2=A0id_ed25519_ori = =C2=A0id_rsa.local =C2=A0known_hosts =C2=A0known_hosts.old
~/.ssh:: ls -= I "*.pub"
config=C2=A0=C2=A0=C2=A0=C2=A0id_ed25519 =C2=A0id_ed25519.loca= l =C2=A0id_ed25519_ori =C2=A0id_rsa.local =C2=A0known_hosts =C2=A0known_hos= ts.old

Man page says nothing about conflicts with= file globbing.=C2=A0
My view is obviously that this is a miss, what are= yours ?

Thanks for your feedback
--

Mathias M

--=_zcWXFzZSzq6u-Zd-A9xdQJ4-- From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 19 01:45:34 2024 Received: (at 69261-done) by debbugs.gnu.org; 19 Feb 2024 06:45:34 +0000 Received: from localhost ([127.0.0.1]:40230 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rbxPC-0005QT-Ao for submit@debbugs.gnu.org; Mon, 19 Feb 2024 01:45:34 -0500 Received: from mail.cs.ucla.edu ([131.179.128.66]:45668) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rbxP6-0005Q6-Bn for 69261-done@debbugs.gnu.org; Mon, 19 Feb 2024 01:45:32 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id 405703C011BC5; Sun, 18 Feb 2024 22:45:01 -0800 (PST) Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavis, port 10032) with ESMTP id u9SFOnJzTmEM; Sun, 18 Feb 2024 22:45:01 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id E90303C011BD8; Sun, 18 Feb 2024 22:45:00 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.cs.ucla.edu E90303C011BD8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.ucla.edu; s=9D0B346E-2AEB-11ED-9476-E14B719DCE6C; t=1708325101; bh=O7R0C8mBXxCh2XDpHY52anNndIniPGDplJK3sCx9okU=; h=Message-ID:Date:MIME-Version:To:From; b=EAVrXfpwgDDeR14cHglldBkMaJcZCLnXRplwpnG0viLXG4QTGpWZ2fCBG781nd56k OrjWyGfYrh5B9X06C93zBITqEH+4GanXQewxT5bTTAeZY7q4Ip/4vwi4+n2Qtso7fZ XnYy2NwrLUy6EVs20Mc6ilDrf2TLxsO/TKkrwOHFefbVeFKnzeV+HJM36/qO4dDYIE heOMrWcfLPPY30uarEDPHI8nlqEhc11sEAUiP45F+sn9+iooNJLnyPau93PfnOSGli 59xiQdwv4Vdse2Wy7us6jMEiPTo2wEreAAcW1Jwp+9cLjwVlcZ9G51Iq7WPMxQElxn Xfj4CuD1lkmAg== X-Virus-Scanned: amavis 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]) (amavis, port 10026) with ESMTP id U5If2cMMFir9; Sun, 18 Feb 2024 22:45:00 -0800 (PST) Received: from [192.168.254.12] (unknown [47.148.192.211]) by mail.cs.ucla.edu (Postfix) with ESMTPSA id C6C0D3C011BC5; Sun, 18 Feb 2024 22:45:00 -0800 (PST) Message-ID: <1e3795ac-d6cd-4b88-ab4b-9dcf6e8d595b@cs.ucla.edu> Date: Sun, 18 Feb 2024 22:45:00 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#69261: 'ls' : --ignore does not apply on FILEs selection Content-Language: en-US To: Mathias MICHEL References: <20240218220739.Horde.3QvqAlNN0q_OhfYP-ZBJJra@grenier.mcxi.eu> From: Paul Eggert Organization: UCLA Computer Science Department In-Reply-To: <20240218220739.Horde.3QvqAlNN0q_OhfYP-ZBJJra@grenier.mcxi.eu> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 69261-done Cc: 69261-done@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: -2.9 (--) On 2024-02-18 14:07, Mathias MICHEL via GNU coreutils Bug Reports wrote: > Is it expected that --ignore arg does not apply on globbed FILE ? Yes. --ignore is about what 'ls' finds in directories, not about command-line arguments. > My goal is to avoid using grep or complex find args: >> > ~/.ssh :: ls id_ed* | grep -v "\.pub$" > id_ed25519 id_ed25519.local id_ed25519_ori Try this: ls --hide='[^i]*' --hide='i[^d]*' --hide='id[^_]*' --hide='id_[^e]*' --hide='id_e[^d]*' --hide='*.pub' Admittedly ugly, but does the job. From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 20 19:49:36 2024 Received: (at 69261) by debbugs.gnu.org; 21 Feb 2024 00:49:36 +0000 Received: from localhost ([127.0.0.1]:47351 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rcanl-0002Mz-12 for submit@debbugs.gnu.org; Tue, 20 Feb 2024 19:49:36 -0500 Received: from mout.gmx.net ([212.227.17.21]:41393) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rcWoO-0003wN-Qa for 69261@debbugs.gnu.org; Tue, 20 Feb 2024 15:33:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.fr; s=s31663417; t=1708461208; x=1709066008; i=matm@gmx.fr; bh=6HQ88R/TsCvHwFQdozO2gumwTAkpZQF2/OqG78g+LyA=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date; b=U7ig/+3UlE9h7GU5sgeechfdfBYvFypIvRuntbGpcb3TKr1gwuGG0RpOIwIndkHU CShMB+jWStSqPgR777jpwRMLba9iZN/W6FGuOf96OG+wzI1GXjxY+ftZNd2ovXZXl 3ESu27HuloaCDqYBxlG2Xn50mcvw3i3xSXq1JHdeJbqFCasz0Eq1FYUVmSY1dig2R Ds775kfAWhUpT4uCR2EegN20nZnigH18hlPuu3+eTvf1z0ylubuhG4YFOav/hBh3P NSdrDprpItM4YdvICO6t/fDA3jcvNfJMFnnzPKCMvo86DPoBIuUQ4vRGh2zE1I1ym IHE70fsEf34uJZ80JQ== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from grenier.mcxi.eu ([88.161.181.155]) by mail.gmx.net (mrgmx104 [212.227.17.174]) with ESMTPSA (Nemesis) id 1MTiTt-1rUe4T2BcT-00U1qB for <69261@debbugs.gnu.org>; Tue, 20 Feb 2024 21:33:28 +0100 From: Mathias MICHEL To: 69261@debbugs.gnu.org Subject: Further discussion on option processing Message-ID: <20240220203328.Horde.xGEGMFO1Tbp8I9jvgqgUMgG@grenier.mcxi.eu> User-Agent: Horde Application Framework 5 Date: Tue, 20 Feb 2024 20:33:28 +0000 Content-Type: multipart/alternative; boundary="=_E1Kh7q7iUgW8HJAcHlnKflp" MIME-Version: 1.0 X-Provags-ID: V03:K1:p1YLa8iFHzj8liUuGL6cpicfcSGBT735TCTKBQydcKLV8FsyVBL PV+o1VI68Pl/kRVsRlrYjtdvPZd63gRtUcPA1gosm4W5h4IsICbZqQ4aVqdKw269amk+yOv HR9lQk5DzFUVaHvJGM8G8/Nk8GpYf08Nl25YgHa8tdDQJyMmJbJD4MqPEnb9ckhyupdRvUE lEw1LRxbzujM8AcBsTK7A== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:yYGzsvzGUaE=;RbI0rRoMAUP5pnC5u+QDsqJhPqw aZQQREYBXek8fHRBZ/FwxUE5MhCK68lzUIaIoGx7zcRyf7gNBazhxLgrGYBwlj8TAYLy8KCAm negg865HoOESlB/pKYx/YlM4VCRavVXh/PDFTiyyS151VwlLG17+Q6Kn3VtxuW629bbKFLcmD XwzmOT9QmmdDTTBDhnWrKav2Gi3uGndvy1jc9uAwP9/Rl1ZYCh93qUSDzUwmxTSqyvQnwanBj BcsX9VH16exquUOauawp0Q9sOvn486W5fGtxQWpeRqiw0oxU0/7A7i+pbK9SUMB9nTZ1j5qQN l4p/kuQQXAixxLfQ630VqdTo0E15ZX8pmvaf16mjrGilOdbFnv7ztp0o+HDomaKbLvb1aiQFb O4ysjv4eb9MzldEvH/Wp9RLAtOGxWXpN4ZIu6/q1I1HLrTcr5MbMZVU5ovI1K6wUDS4jtzKZr NqqczuUaDWdducDx6vZSAsjV/D08t4EAiru+1wgrihvQX2NtfI/hZDwSaY/uigjQwY75nydvH Jjvl9vGYAk0hrf3n0QVa9R5CYj6lAdFynL2o172qxR6N2tYHXYRRc2TYBPp9k3Rw0bmd2WCqR gU4+S3VEAcs+GCkpVdjTow82b9WJCZrhwLfoVxWhgJLaBlpbxLVNNkPXaUuINPuiMKnDVm+a6 UocanmudQKYcufWBzffjIxIeYLcTrlC9sMqqPBS23NR+t49gpMz18W8t8jnzOIcQbZxQnyhF9 tjv+aQ99pvdrSTFwdhBCtMx2zQ3rZe9N2bBD6ahXoAD9tdBbqPcYLMytPT6g1HqHoPD5Jrz0x SomX5GUNA8A/0V6d2b75b6tbIsSYMfFIRr4dqWU66It8yFfPOMXd0+/En1AeKow4liXgjeov7 WgkAwLC9nqlAB4WVywb3mqlruffMZnpg7yoRC59bN7DgwNiDoA+pO0JEkd6NZ0dvggii/xjlZ NFWSGQ== X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 69261 X-Mailman-Approved-At: Tue, 20 Feb 2024 19:49:31 -0500 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: -3.6 (---) This message is in MIME format. --=_E1Kh7q7iUgW8HJAcHlnKflp Content-Type: text/plain; charset=utf-8 Content-Description: Plaintext Version of Message Content-Transfer-Encoding: quoted-printable Paul Eggert said: > Yes. --ignore is about what 'ls' finds in directories, not about command-line arguments. =C2=A0 So my command should work, IMO: ls --hide "*.pub" id_ed* =C2=A0 =C2=A0 id_ed* would expand to all files starting with id_ed ls will stat them and get their name =2D-hide should hide those matching the pattern.ls should display the expected result of all id_ed private key files. I don't understand why --hide is depending on whether FILEs were provided or not to the command. This is the opposite of what Paul stated. Best regards=C2=A0 =C2=A0 Mathias M --=_E1Kh7q7iUgW8HJAcHlnKflp Content-Type: text/html; charset=utf-8 Content-Description: HTML Version of Message Content-Transfer-Encoding: quoted-printable


Paul Eggert said:

> Yes. --ignore is about what 'ls' finds in directories, not ab= out command-line arguments.

=C2=A0

So my command should work, IMO:

l= s --hide "*.pub" id_ed* =C2=A0

=C2=A0

i= d_ed* would expand to all files starting with id_ed

ls will stat them and get their name

--hide = should hide those matching the pattern.
ls should display the expected = result of all id_ed private key files.


I don= 't understand why --hide is depending on whether FILEs were provided or no= t to the command. This is the opposite of what Paul stated.


Best regards=C2=A0

=C2=A0

Mathias M

--=_E1Kh7q7iUgW8HJAcHlnKflp-- From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 20 21:56:50 2024 Received: (at 69261) by debbugs.gnu.org; 21 Feb 2024 02:56:50 +0000 Received: from localhost ([127.0.0.1]:47497 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rccmv-0005cr-OF for submit@debbugs.gnu.org; Tue, 20 Feb 2024 21:56:50 -0500 Received: from mail.cs.ucla.edu ([131.179.128.66]:55254) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rccms-0005cW-4Y for 69261@debbugs.gnu.org; Tue, 20 Feb 2024 21:56:48 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id D0CAF3C011BDB; Tue, 20 Feb 2024 18:56:17 -0800 (PST) Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavis, port 10032) with ESMTP id vxzegzVt4KtP; Tue, 20 Feb 2024 18:56:17 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id 8AF743C011BDD; Tue, 20 Feb 2024 18:56:17 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.cs.ucla.edu 8AF743C011BDD DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.ucla.edu; s=9D0B346E-2AEB-11ED-9476-E14B719DCE6C; t=1708484177; bh=kHLpV9lyASMd16Cyywd5iJY48pPChYQbFHPGZc9KJRg=; h=Message-ID:Date:MIME-Version:To:From; b=l79UqmPI3eiSG7hH50EBvsFOSRuI3SwPSt3Vk0jiEYLMnhInOM/fXVXo6YBeaoXG/ ecpE1Z3/T7FfZt913o8RqunliVo9Gu9F/ToAkfGTvWoQkboTDRxzvFOohbFf1Ss8Ao ew+k3ePhb0ZF4atAIosWfokhLqHHNgC8fHxsIntYJA70UX8fQSHSfBWeMMdWUAMxYZ Im6/5RGCtLa5Fj8qG23pN1mHvdLxSMf3KCkaYG/cazNozcseNi2gTCn860Ze03t/Q0 Hc6rZMt1CwnQZTj6TqmVVNs7iX4hMnSJSrhn6pZxVEAU5G/IL0JTJwUcJMf//K7j9/ JGBy2nF0CQW2g== X-Virus-Scanned: amavis 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]) (amavis, port 10026) with ESMTP id 2NrsV2q0Jmw8; Tue, 20 Feb 2024 18:56:17 -0800 (PST) Received: from [192.168.254.12] (unknown [47.148.192.211]) by mail.cs.ucla.edu (Postfix) with ESMTPSA id 6C9F53C011BDB; Tue, 20 Feb 2024 18:56:17 -0800 (PST) Message-ID: Date: Tue, 20 Feb 2024 18:56:17 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#69261: Further discussion on option processing Content-Language: en-US To: Mathias MICHEL References: <20240218220739.Horde.3QvqAlNN0q_OhfYP-ZBJJra@grenier.mcxi.eu> <20240220203328.Horde.xGEGMFO1Tbp8I9jvgqgUMgG@grenier.mcxi.eu> From: Paul Eggert Organization: UCLA Computer Science Department In-Reply-To: <20240220203328.Horde.xGEGMFO1Tbp8I9jvgqgUMgG@grenier.mcxi.eu> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 69261 Cc: 69261@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: -2.9 (--) On 2024-02-20 12:33, Mathias MICHEL via GNU coreutils Bug Reports wrote: > I don't understand why --hide is depending on whether FILEs were provided > or not to the command. This is the opposite of what Paul stated. It's not the opposite of what I stated. I said that --hide affects only files that 'ls' finds in directories itself (e.g., via ls -R); it does not affect command-line arguments. That's the behavior you're observing, and that's the documented behavior. As for "why", it's similar to ls's behavior with files starting with ".". Normally ls doesn't display them, but if you give an explicit command-line argument (e.g., "ls -d .") it displays them, regardless of whether you've also specified -a or -A or whatever. It's not likely that we'd change ls's behavior for the command-line arguments you gave, as it's been behaving this way for years and other people likely depend on this behavior. However, you can get get the behavior that you want by using a different set of command-line arguments (see my previous email), so you might try doing that. From unknown Thu Jun 19 13:58:08 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, 20 Mar 2024 11:24:09 +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