SHA256
1
0
forked from pool/tcsh

Add fix for complete.tcsh (boo#1215817)

OBS-URL: https://build.opensuse.org/package/show/shells/tcsh?expand=0&rev=160
This commit is contained in:
Dr. Werner Fink 2023-10-09 08:10:26 +00:00 committed by Git OBS Bridge
parent dcef063dbb
commit 8ce31caa77
2 changed files with 19 additions and 8 deletions

View File

@ -170,7 +170,8 @@ endif
complete ping p/1/\$hosts/ complete ping p/1/\$hosts/
complete traceroute p/1/\$hosts/ complete traceroute p/1/\$hosts/
complete {talk,ntalk,phone,otalk,ytalk} p/1/'`users | tr " " "\012" | uniq`'/ \ complete {talk,ntalk,phone,otalk,ytalk} \
p/1/'`users | tr " " "\012" | uniq`'/ \
n/*/\`who\ \|\ grep\ \$:1\ \|\ awk\ \'\{\ print\ \$2\ \}\'\`/ n/*/\`who\ \|\ grep\ \$:1\ \|\ awk\ \'\{\ print\ \$2\ \}\'\`/
complete ftp c/-/"(d i g n v)"/ n/-/\$hosts/ p/1/\$hosts/ n/*/n/ complete ftp c/-/"(d i g n v)"/ n/-/\$hosts/ p/1/\$hosts/ n/*/n/
@ -241,6 +242,8 @@ endif
delta diffs edit enter fix get help info \ delta diffs edit enter fix get help info \
print prs prt rmdel sccsdiff tell unedit \ print prs prt rmdel sccsdiff tell unedit \
unget val what)"/ unget val what)"/
complete setenv 'p/1/e/' 'c/*:/f/'
# Complete for MH tools already skipped # Complete for MH tools already skipped
if ( $?SKIP_MH ) goto skip_mh if ( $?SKIP_MH ) goto skip_mh
@ -883,13 +886,13 @@ endif
complete cat c/--/"(number-nonblank number squeeze-blank show-all \ complete cat c/--/"(number-nonblank number squeeze-blank show-all \
show-nonprinting show-ends show-tabs help version)"/ \ show-nonprinting show-ends show-tabs help version)"/ \
c/-/"(b e n s t u v A E T -)"/ n/*/f/ c/-/"(A b E e n s T t u v -)"/ n/*/f/
complete mv c/--/"(backup force interactive update verbose suffix \ complete mv c/--/"(backup force interactive update verbose suffix \
version-control help version)"/ \ version-control help version)"/ \
c/-/"(b f i u v S V -)"/ \ c/-/"(b f i S u V v -)"/ \
n/{-S,--suffix}/x:'<suffix>'/ \ n/{-S,--suffix}/x:'<suffix>'/ \
n/{-V,--version-control}/"(t numbered nil existing \ n/{-V,--version-control}/"(t numbered nil existing \
never simple)"/ n/-/f/ N/-/d/ p/3-/d/ n/*/f/ never simple)"/ n/-/f/ N/-/d/ p/1/f/ p/2/d/ n/*/f/
complete cp c/--/"(archive backup no-dereference force \ complete cp c/--/"(archive backup no-dereference force \
interactive link preserve parents sparse recursive \ interactive link preserve parents sparse recursive \
symbolic-link suffix update verbose version-control \ symbolic-link suffix update verbose version-control \
@ -897,14 +900,14 @@ endif
c/-/"(a b d f i l P p R r S s u V v x -)"/ \ c/-/"(a b d f i l P p R r S s u V v x -)"/ \
n/-*r/d/ n/{-S,--suffix}/x:'<suffix>'/ \ n/-*r/d/ n/{-S,--suffix}/x:'<suffix>'/ \
n/{-V,--version-control}/"(t numbered nil existing \ n/{-V,--version-control}/"(t numbered nil existing \
never simple)"/ n/-/f/ N/-/d/ p/3-/d/ n/*/f/ never simple)"/ n/-/f/ N/-/d/ p/1/f/ p/2/d/ n/*/f/
complete ln c/--/"(backup directory force no-dereference \ complete ln c/--/"(backup directory force no-dereference \
interactive symbolic suffix verbose version-control \ interactive symbolic suffix verbose version-control \
help version)"/ \ help version)"/ \
c/-/"(b d F f i n S s V v -)"/ \ c/-/"(b d F f i n S s V v -)"/ \
n/{-S,--suffix}/x:'<suffix>'/ \ n/{-S,--suffix}/x:'<suffix>'/ \
n/{-V,--version-control}/"(t numbered nil existing \ n/{-V,--version-control}/"(t numbered nil existing \
never simple)"/ n/-/f/ N/-/x:'<link_name>'/ \ never simple)"/ n/-*/f/ N/-*/x:'<link_name>'/ \
p/1/f/ p/2/x:'<link_name>'/ p/1/f/ p/2/x:'<link_name>'/
complete touch c/--/"(date reference time help version)"/ \ complete touch c/--/"(date reference time help version)"/ \
c/-/"(a c d f m r t -)"/ \ c/-/"(a c d f m r t -)"/ \
@ -916,6 +919,7 @@ endif
n/{-m,--mode}/x:'<mode>'/ n/*/d/ n/{-m,--mode}/x:'<mode>'/ n/*/d/
complete rmdir c/--/"(ignore-fail-on-non-empty parents verbose help \ complete rmdir c/--/"(ignore-fail-on-non-empty parents verbose help \
version)"/ c/-/"(p -)"/ n/*/d/ version)"/ c/-/"(p -)"/ n/*/d/
complete env 'c/*=/f/' 'p/1/e/=/' 'p/2/c/'
complete tar c/-[Acru]*/"(b B C f F g G h i l L M N o P \ complete tar c/-[Acru]*/"(b B C f F g G h i l L M N o P \
R S T v V w W X z Z j I)"/ \ R S T v V w W X z Z j I)"/ \

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Mon Oct 9 08:08:30 UTC 2023 - Dr. Werner Fink <werner@suse.de>
- Add some fixes from
https://github.com/tcsh-org/tcsh/blob/master/complete.tcsh
to our complete.tcsh (boo#1215817)
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Jul 24 08:12:01 UTC 2023 - Dr. Werner Fink <werner@suse.de> Mon Jul 24 08:12:01 UTC 2023 - Dr. Werner Fink <werner@suse.de>