Post #1967494
2026-05-04 15:03 UTC
@rl_dane @boggin oh, I slightly misremembered - it's not autocomplete that it effects, it's expansion:
"If the last character of the alias value is a blank, then the shell checks the next command word following the alias for alias expansion." - https://www.gnu.org/software/bash/manual/html_node/Aliases.html
In other words, if you alias sudo='sudo ' and ll='ls -l' then you can run 'sudo ll' and it expands to 'sudo ls -l'
I can't think why I didn't remember that, such an obviously intuitive feature 😜
Replies (1)
-
@rl_dane@polymaths.social 2026-05-04 16:41
@imsop @boggin FASCINATING. $ alias two=tee-double-you-oh $ alias one=echo $ one two two $ alias one='echo ' $ one two tee-double-you-oh $