bash-completion-tutorial icon indicating copy to clipboard operation
bash-completion-tutorial copied to clipboard

Why do you start adding -- (double dash) to the compgen command?

Open amir-mehler-via opened this issue 6 years ago • 1 comments

Ok, I read about it a bit now and I understand: https://unix.stackexchange.com/questions/11376/what-does-double-dash-mean-also-known-as-bare-double-dash

It's there to signify we've finished listing the options and will now only add the prefix of the completion.

I don't know if you'd want to add a comment about it in the text.

Anyway Great Tutorial!

amir-mehler-via avatar May 04 '18 12:05 amir-mehler-via

@amir-mehler-via Thank you! You are right, I will let this issue open until I find the time to clarify this in the post.

iridakos avatar May 04 '18 12:05 iridakos