3 ms·
> cat =egrep =fgrep What is that? I can't seem to find it by searching for " =" in `man bash`
by yjftsjthsd-h 4y ago
> cat =egrep =fgrep
What is that? I can't seem to find it by searching for " =" in `man bash`
- professoretc 4y agoIn ZSH `=executable` expands to the full path of `executable`.
- deleted 4y ago[deleted]
- pwagland 4y agoThis is a zsh thing, it's shorthand for: cat "$(which egrep)" "$(which fgrep)"
- deleted 4y ago[deleted]
- sprremix 4y agoIt's a zsh thing. 14.7.3 ‘=’ expansion If a word begins with an unquoted ‘=’ and the EQUALS option is set, the remainder of the word is taken as the name of a command. If a command exists by that name, the word is replaced by the full pathname of the command. From: https://zsh.sourceforge.io/Doc/Release/Expansion.html#g_t_0060_003d_0027-expansion https://zsh.sourceforge.io/Doc/Release/Expansion.html#g_t_00...