Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 70930 Details for
Bug 109697
app-portage/genlop: bash-completion does not support all command-line arguments
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
support for more command-line arguments
genlop.bash-completion.patch (text/plain), 2.43 KB, created by
Renat Golubchyk
on 2005-10-18 05:45:48 UTC
(
hide
)
Description:
support for more command-line arguments
Filename:
MIME Type:
Creator:
Renat Golubchyk
Created:
2005-10-18 05:45:48 UTC
Size:
2.43 KB
patch
obsolete
>--- genlop.bash-completion 2005-08-17 01:21:53.000000000 +0200 >+++ genlop.bash-completion.new 2005-10-18 14:00:13.000000000 +0200 >@@ -12,33 +12,35 @@ > # > _genlop() > { >- local cur grepcmd sedcmd systemactions setsma setbig portagedir origdir >+ local cur grepcmd sedcmd systemactions setsma setbig portagedir origdir args > > origdir="${PWD}" > COMPREPLY=() > portagedir="$( (source /etc/make.conf; echo ${PORTDIR}) )" >- if [ ${portagedir} = "" ]; then >- portagedir=/usr/portage >+ if [[ "${portagedir}" == "" ]]; then >+ portagedir="/usr/portage" > fi > cur="${COMP_WORDS[COMP_CWORD]}" > > cd "${portagedir}" > grepcmd="grep -E ^${cur}.*" > sedcmd="sed -e /^[^-]*$/d" >- case "$cur" in >+ case "${cur}" in > -*) >- COMPREPLY=( $( compgen -W '--current --file --help \ >- --info --gmt --list --nocolor --pretend --rsync \ >- --search --time --unmerge --version' -- $cur ) ) >+ args='-c -e -f -h -i -g -l -n -p -r -s -S -t -u -v' >+ args="${args} --current --date --file --gmt --help \ >+ --info --list --nocolor --pretend --rsync \ >+ --search --time --unmerge --version" >+ COMPREPLY=( $( compgen -W "${args}" -- ${cur} ) ) > ;; > *) >- if [ "${cur}" ]; then >- if [ $(echo "${cur}" | grep '/') ]; then >+ if [[ "${cur}" ]]; then >+ if [[ $(echo "${cur}" | grep '/') ]]; then > setbig=$(compgen -G "${cur}*" | ${sedcmd})"${systemactions}" >- COMPREPLY=($(echo "${setbig}" | $grepcmd)) >+ COMPREPLY=($(echo "${setbig}" | ${grepcmd})) > else > setsma=$(compgen -S '/' -G "${cur}*" | ${sedcmd})"${systemactions}" >- if [ $(echo "${setsma}" | ${grepcmd} | grep '/' | wc -l) = 1 ]; then >+ if [[ $(echo "${setsma}" | ${grepcmd} | grep '/' | wc -l) == 1 ]]; then > setbig=$(compgen -G "*/*" | ${sedcmd})"${systemactions}" > COMPREPLY=($(echo "${setbig}" | ${grepcmd})) > else
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 109697
:
70930
|
70941
|
121795