You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by GitBox <gi...@apache.org> on 2022/12/20 12:11:28 UTC

[GitHub] [maven-mvnd] mrg opened a new issue, #756: Bash Completions Kills Shell (Mac/Homebrew)

mrg opened a new issue, #756:
URL: https://github.com/apache/maven-mvnd/issues/756

   I'm not sure if the Homebrew packaging is maintained here (if not, maybe add a comment to the README), but after installing via Homebrew and adding `source /usr/local/bin/mvnd-bash-completion.bash` to my `~/.bash_login`, all future shells were killed with:
   
   ```
   Last login: Tue Dec 20 06:51:54 on ttys009
   -bash: /usr/local/Cellar/mvnd/0.8.2/libexec/bin/mvnd-bash-completion.bash: Permission denied
   -bash: exec: /usr/local/Cellar/mvnd/0.8.2/libexec/bin/mvnd-bash-completion.bash: cannot execute: Undefined error: 0
   
   [Process completed]
   ```
   
   Fortunately, I had other shells open and it was easy to undo. The contents of `source /usr/local/bin/mvnd-bash-completion.bash` is:
   
   ```
   #!/bin/bash
   JAVA_HOME="${JAVA_HOME:-/usr/local/opt/openjdk/libexec/openjdk.jdk/Contents/Home}" exec "/usr/local/Cellar/mvnd/0.8.2/libexec/bin/mvnd-bash-completion.bash"  "$@"
   ```
   
   If I replaced `/usr/local/bin/mvnd-bash-completion.bash` with `/usr/local/Cellar/mvnd/0.8.2/libexec/bin/mvnd-bash-completion.bash`, the sourcing works, but isn't robust if the version number changes.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [maven-mvnd] gnodet closed issue #756: Bash Completions Kills Shell (Mac/Homebrew)

Posted by "gnodet (via GitHub)" <gi...@apache.org>.
gnodet closed issue #756: Bash Completions Kills Shell (Mac/Homebrew)
URL: https://github.com/apache/maven-mvnd/issues/756


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [maven-mvnd] gnodet commented on issue #756: Bash Completions Kills Shell (Mac/Homebrew)

Posted by "gnodet (via GitHub)" <gi...@apache.org>.
gnodet commented on issue #756:
URL: https://github.com/apache/maven-mvnd/issues/756#issuecomment-1401726773

   The home-brew package sources are at https://github.com/mvndaemon/homebrew-mvnd/tree/master.
   I can't find where a file such as the one you have would come from, but I have the same locally, so I suppose it's generated by home-brew during the installation process. So I don't think the hardcoded version is a problem, as it will be updated by home-brew.  I think the problem is that the `/usr/local/Cellar/mvnd/0.8.2/libexec/bin/mvnd-bash-completion.bash` has no executable flag.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org