On 5 Aug 2025 at 12:25, Tim via users wrote: Subject: Re: OT: systemctl staus lines that show failed? How to clean? To: mikes@xxxxxxxx, Community support for Fedora users <users@xxxxxxxxxxxxxxxxxxxxxxx>, Stephen Morris <steve.morris.au@xxxxxxxxx> Date sent: Tue, 05 Aug 2025 12:25:58 +0930 Send reply to: Community support for Fedora users <users@xxxxxxxxxxxxxxxxxxxxxxx> From: Tim via users <users@xxxxxxxxxxxxxxxxxxxxxxx> Copies to: Tim <ignored_mailbox@xxxxxxxxxxxx> > Stephen Morris wrote: > >> Just to test this on my system I issued the command > >> "systemctl status * | grep -i fail in konsole > > > Michael D. Setzer II: > > Just a quick note: There is and issue with the use of the *. > > Sometimes it replaces the * with the files that are in the current > > directory rather than using the * as a wildcard for all servers? > > > > For completeness' sake... > > The usual way to avoid that is to escape the special symbol (asterisk, > in this case), so that the asterisk is passed along to the thing in > your command (as a character, itself), rather than being parsed by the > terminal before it does that (note the deliberate use of "passed" and > "parsed"). > > e.g. systemctl status \* > Interesting. Wasn't sure why the * in an empty directory would have commands work but if in directory with files it would not? Don't recall what it was that original had me find that it would work in an empty directory. Don't know if is the command or shell that is causing the issue. Thanks for the info. > That way, it's systemctl that does whatever **it** does with an > asterisk wildcard symbol. > > The backslash is the usual way of escaping special symbols on Linux. > > I think it's fairly safe to say that the shell will **always** try to > handle the wildcard if one types it after a command, and **only** > doesn't if it can't do any wildcard matching. > > -- > > uname -rsvp > Linux 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 > (yes, this is the output from uname for this PC when I posted) > > Boilerplate: All unexpected mail to my mailbox is automatically deleted. > I will only get to see the messages that are posted to the mailing list. > > > -- > _______________________________________________ > users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx > To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx > Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ > List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines > List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx > Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue +------------------------------------------------------------+ Michael D. Setzer II - Computer Science Instructor (Retired) mailto:mikes@xxxxxxxx mailto:msetzerii@xxxxxxxxx mailto:msetzerii@xxxxxxx Guam - Where America's Day Begins G4L Disk Imaging Project maintainer http://sourceforge.net/projects/g4l/ +------------------------------------------------------------+ -- _______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue