Comments (5)
Actually, is this circular logic?
from homebrew-command-not-found.
Calling brew command-not-found-init
is different from echo "$(brew command-not-found-init)"
. This is working as expected.
from homebrew-command-not-found.
echo
doesn't occur anywhere except in your post.
from homebrew-command-not-found.
echo
shows what the output is when it is called as a subshell.
from homebrew-command-not-found.
brew command-not-found-init
is not meant to be called directly, because it must run in the current shell context to setup its hook. If you call it that way, it detects it and prints you its help message.
As @reitermarkus wrote, you can see which code is executed by running echo "$(brew command-not-found-init)"
.
from homebrew-command-not-found.
Related Issues (20)
- Takes 1-2 seconds before it shows the message HOT 10
- Commands starting with '-' can appear to be options and need quoting HOT 1
- Using brew gives warnings HOT 18
- Command brew which-update fails HOT 2
- Consider supporting fish. HOT 1
- (eval):1: no matches found: “# HOT 11
- Incorrectly refer to .bashrc as opposed to .bash_profile? HOT 3
- not working and I've installed and edited my bash_profile HOT 6
- I followed the installation instructions but it doesn't work HOT 2
- Error: undefined method `install_tap' for Homebrew:Module HOT 3
- could this be extended to support searching libraries? (not just binaries) HOT 2
- `brew which-formula lldb` empty for formulas requiring options (eg lldb) HOT 2
- duplicate 'zsh: command not found: ' HOT 1
- Error with brew which-update: undefined method `split' for nil:NilClass HOT 2
- command-not-found causes VERY long zsh startup times HOT 10
- `brew which-formula` doesn't work HOT 2
- homebrew-command-not-found started displaying error on loading on macOS HOT 4
- Path given in README does not work for `/opt/homebrew` installations on M1 Macs
- prompt if not in PATH? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homebrew-command-not-found.