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

Re: searching repo



On Fri, Oct 03, 2025 at 02:07:18 +0000, fxkl47BF@protonmail.com wrote:
> On Thu, 2 Oct 2025, John Hasler wrote:
> 
> > apt list ~sScience
> 
> thanks

Just for the record, the ~ should be quoted (using any of the ways you
can quote it in the shell) to avoid a possible tilde expansion.  That
expansion shouldn't occur unless you happen to have a user account named
sScience on your system, which is unlikely, but it's still a good practice
to develop.

    apt list '~sScience'
    apt list "~sScience"
    apt list \~sScience
    apt list "~"sScience

and so on.  Any of those (and more) are fine.  The ~ needs to be quoted to
lose its special meaning to the shell and to be passed literally to apt.


Reply to: