Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 121795 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]
combined patch for genlop 0.30.7
genlop.bash-completion.0.30.7.patch (text/plain), 2.75 KB, created by
Renat Golubchyk
on 2007-06-12 11:36:58 UTC
(
hide
)
Description:
combined patch for genlop 0.30.7
Filename:
MIME Type:
Creator:
Renat Golubchyk
Created:
2007-06-12 11:36:58 UTC
Size:
2.75 KB
patch
obsolete
>--- genlop 2007-05-30 22:12:03.000000000 +0200 >+++ genlop.new 2007-05-30 22:09:42.000000000 +0200 >@@ -12,35 +12,37 @@ > # > _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.globals >- source /etc/make.conf >- echo ${PORTDIR}) )" >- if [ -z "${portagedir}" ]; then >- portagedir=/usr/portage >+ portagedir="$( (source /etc/make.globals >+ source /etc/make.conf >+ echo ${PORTDIR}) )" >+ if [[ -z "${portagedir}" ]]; then >+ portagedir="/usr/portage" > fi > cur="${COMP_WORDS[COMP_CWORD]}" > >- cd "${portagedir}" >+ builtin 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 >@@ -54,7 +56,7 @@ > ;; > esac > >- cd "${origdir}" >+ builtin cd "${origdir}" > return 0 > } > complete -o default -F _genlop genlop
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