[kwlug-disc] Bash Autocompletion (Nov 2022)
John Steel
john at jskw.ca
Wed Nov 16 11:26:30 EST 2022
The only examples I've found so far escape the space instead of adding quotes. That's probably a good way to handle it. It seems that's what git does for autocompleting `git add filename\ with\ spaces`
On Wed, Nov 16, 2022, at 4:03 AM, Ronald Barnes wrote:
> peter_melse at gto.net wrote on 2022-11-15 06:07:
>
> > some examples of varying complexity in a github repo would be cool!
>
> I've got an example with 12 lines of code that implements support for
> spaces in completion options.
>
> There are 20 lines of comments, so it ought to be fairly easy to understand.
>
>
> See space_chars branch at:
>
> > https://github.com/RonaldBarnes/bash_completion
>
>
>
> rb
>
> _______________________________________________
> kwlug-disc mailing list
> To unsubscribe, send an email to kwlug-disc-leave at kwlug.org
> with the subject "unsubscribe", or email
> kwlug-disc-owner at kwlug.org to contact a human being.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://kwlug.org/pipermail/kwlug-disc_kwlug.org/attachments/20221116/c71b0ab0/attachment.htm>
More information about the kwlug-disc
mailing list