-
Notifications
You must be signed in to change notification settings - Fork 229
Closed
Description
Describe the bug
The Debian bash autocomplete n98-magerun2.phar uses local where it can't be used, so everybody doing a ddev ssh in DDEV gets this since latest release:
rfay@ubuntu-len:~/workspace/d11$ ddev ssh
bash: local: can only be used in a function
bash: local: can only be used in a function
I guess this is line 9 in the generated completion file:
rfay@d11-web:/etc/bash_completion.d$ bash n98-magerun2.phar
n98-magerun2.phar: line 9: local: can only be used in a function
Expected behaviour
We shouldn't get that error/warning
Steps to reproduce the issue
Use current DDEV HEAD , see https://docs.ddev.com/en/stable/developers/building-contributing/#testing-latest-commits-on-head
mkdir -p ~/tmp/showbug && cd ~/tmp/showbug
ddev config --auto
ddev start -y
ddev sshTechnical details
All machines.
DDEV HEAD (with latest magerun2
Possible Fix
Additional context
I think this is in n98-magerun as well, but since it hasn't had a release I don't understand that.
stasadev