0

I added a custom command to bash and can't pass arguments into it

I have a bnpmf.sh file in /usr/bin which specifies the bnpmf function

Now I source the bnpmf.sh file from /etc/bash.bashrc with source /usr/bin/bnpmf.sh

When I iterate over the arguments in the function, by arguments I mean shell: bnpmf arg1 arg2 ,they simply do not show up whatsoever, which is incredibly weird.

I use while [[ $@ -gt 0 ]] do to iterate over the arguments

How do I get these arguments recognized in my function

TheEyeOfAr3s
  • 128
  • 8

0 Answers0