In my ~/.bashrc file reside two definitions:
commandA, which is an alias to a longer pathcommandB, which is an alias to a Bash script
I want to process the same file with these two commands, so I wrote the following Bash script:
#!/bin/bash
for file in "$@"
do
commandA $file
commandB $file
done
Even after logging out of my session and logging back in, Bash prompts me with command not found errors for both commands when I run this script.
What am I doing wrong?
source ~/.bashrc.