[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: reportbug: don't know: bug in apt [list] or in grep



On Thu, Jan 19, 2023 at 11:31:23AM +0100, Christoph Brinkhaus wrote:
> Am Thu, Jan 19, 2023 at 09:10:30AM +0100 schrieb js-priv@online.de:
> 
> Hello Julian,
> 
> > Hello together,
> > listing packages in apt with ”sudo“ in the title returns different output (bash commands at the end of the email). I would fill a bug report, but I'm not sure whether to address it to grep or apt. How do you see this?
> > 
> > Kind regards
> > Julian Schreck
> > --
> > $ apt list sudo*   vs.  $ apt list | grep "^sudo[a-z-]"
> > $ apt list *sudo   vs.  $ apt list | grep "[a-z-]sudo/"
> > $ apt list *sudo*  vs.  $ apt list | grep "sudo"
> 
> It seems to be more a shell topic or how man 7 glob is handled.
> Please try the first patterns with "" signs as
> apt-list "sudo*" instead of apt-list sudo* and so on.
> It made the difference for me using the fish shell.

Doing "apt list sudo*" without any quoting is asking for trouble anyway,
regardless of the shell you use.

What the command apt will ultimately see will depend on what files are
in your current directory.

Don't do that. It will drive you crazy.

Cheers
-- 
t

Attachment: signature.asc
Description: PGP signature


Reply to: