On 3/26/19 3:43 AM, d3fault wrote: > Bash Version: 4.4 > Patch Level: 12 > Release Status: release > > Description: > In the following example it auto-completes without putting double > quotes around "hi mom", which means a process would see it as 2 > separate args instead of 1.
If you want the words to be quoted, you have to say they should be quoted. If you want them quoted like filenames, tell complete they should be treated as filenames. > $ complete -W "hi\ mom foo bar" ls complete -o filenames -W "hi\ mom foo bar" ls -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRU c...@case.edu http://tiswww.cwru.edu/~chet/