Need but failed run a user's alias inside bash CLI

Oct 5, 2022 at 1:41am
Failed run a user's alias inside bash CLI
How can run a user's alias

 
$ grab 'man'


but as to do it in a CLI
1
2
$ bash -c "grab 'man'"
bash: line 1: grab: command not found


Please show the correct fixing way
Oct 5, 2022 at 1:57am
Start an interactive shell
$ bash -ic 'grab man'
This info is available in the man page, see man 1 bash.
Oct 10, 2022 at 10:49am
grab? command not found is what I'd expect.
Oct 10, 2022 at 8:16pm
Presumbaly the OP has alias named "grab" that resolves to some existing command.
Oct 11, 2022 at 6:16am
Presumbaly the OP has alias named "grab" that resolves to some existing command.

Very likely, but if he needs help, he should provide all relevant information, we shouldn't have to ask for it as he's asked questions previously.
Topic archived. No new replies allowed.