News for hackers. Stuff that matters.
Re:How Bash Completion Works by karatinversion on Sunday October 06, 2019 @03:33PM (#21174459)
Nice article, it’s usually hard to keep a reader’s interest when writing about shell.

I will nitpick that COMP_LINE et al are shell variables, not environment variables - you can tell by the fact you don’t need to export the “return value”. (Scare quotes, as the function’s exit code, manually specifiable with “return NN”, is also called its return value.)

Re:How Bash Completion Works by p_ronto on Sunday October 13, 2019 @04:43PM (#21242864)
I think they are env vars. complete is a bash built-in. It is executed in the process of the shell. You only need to export for child processes.