3 ms·
I have the same habit. The lack of tilde expansion after the equals sign has helped a bit in breaking this habit, however. Interestingly, bash does do tilde ex
by jasomill 2y ago
I have the same habit. The lack of tilde expansion after the equals sign has helped a bit in breaking this habit, however.
Interestingly, bash does do tilde expansion, but not tab completion, after the first equal sign, and after every colon, in variable-style arguments:
$ /bin/echo --foo=~ bar=~:~root
--foo=~ bar=/home/jtm:/root
While tab completion can be fixed in appropriate contexts using custom completion functions (e.g., [1]), AFAIK there's no way to customize tilde expansion contexts (other than the fact that tilde expanding variable-style arguments is disabled in POSIX mode).
[1] https://github.com/scop/bash-completion/blob/8a8880db78e9b04fb3d66681028af701701f93f2/completions/dd#L10 https://github.com/scop/bash-completion/blob/8a8880db78e9b04...