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 \* 

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 -- [email protected]
To unsubscribe send an email to [email protected]
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/[email protected]
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to