Hyunho Cho
Hyunho Cho
I asked this problem to the current bash maintainer. and he said without bash-completion installed get the same null second argument with or without specifying 'sudo' I think no needs...
check this script out. i made this for fixing the bug of sudo completion function. and it works for me though i'm not using bash-completion package in my completion function....
The problem is that the bash-completion package installed by default all linux distros. so even users not using the package have to use the sudo completion function in the package....
I never thought of completions in the command line options that way. I'm sorry about my ignorance. my preferred way is to adding the second argument of `$2` value to...
how about using `shopt -e extdebug` option ? if you enable extdebug option then you can obtain ancestor function's argument count and values like this ```sh #!/bin/bash _command_offset() { echo...
As you already know, quotes are members of the `$COMP_WORDBREAKS` variable and have different behavior than other WORDBREAKERS. The primary usage of quotes in tab completions is to input multiple...
I made this simple parser for parsing the `${COMP_WORDS[COMP_CWORD]}` value to set up the original `$2` variable based on your test cases. please check this out whether need to fix...
I'm currently using bash version 5.1.16 Ubuntu 22.04.1 LTS There seems to be a lot of different values from the expected values. for example ``` . . . 285: failed:...
Shell 에서는 quotes 이 아주 중요한 부분을 차지하고 까다롭기 때문에 eval 의 설명에 포함된것 같습니다. 말씀하신 대로 위의 예제에서는 변수 `$AA` `$BB` 에 대한 확장만 보이는데 "확장" 과 "치환" 단어는...