GNU bug report logs - #69261
'ls' : --ignore does not apply on FILEs selection

Previous Next

Package: coreutils;

Reported by: Mathias MICHEL <matm <at> gmx.fr>

Date: Mon, 19 Feb 2024 03:19:01 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


Message #13 received at 69261 <at> debbugs.gnu.org (full text, mbox):

From: Mathias MICHEL <matm <at> gmx.fr>
To: 69261 <at> debbugs.gnu.org
Subject: Further discussion on option processing
Date: Tue, 20 Feb 2024 20:33:28 +0000
[Message part 1 (text/plain, inline)]
Paul Eggert said:
> Yes. --ignore is about what 'ls' finds in directories, not about
command-line arguments.
 
So my command should work, IMO:
ls --hide "*.pub" id_ed*  
 
id_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 not to the command. This is the opposite of what Paul stated.
Best regards 
 
Mathias M
[Message part 2 (text/html, inline)]

This bug report was last modified 1 year and 91 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.