importpw / import

`import` is a simple and fast module system for Bash and other Unix shells
https://import.sh
MIT License
338 stars 10 forks source link

Don't execute `basename -bash` #23

Closed TooTallNate closed 4 years ago

TooTallNate commented 4 years ago

Fixes when $0 is "-bash", like in some shells:

$ eval "$(curl -sfLS import.pw)"
basename: invalid option -- 'b'
Try 'basename --help' for more information.