From 8ce31caa77082eccdc711418c32f46c4d9f40d8708df056449a2b0612230f0ab Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Mon, 9 Oct 2023 08:10:26 +0000 Subject: [PATCH] Add fix for complete.tcsh (boo#1215817) OBS-URL: https://build.opensuse.org/package/show/shells/tcsh?expand=0&rev=160 --- complete.tcsh | 20 ++++++++++++-------- tcsh.changes | 7 +++++++ 2 files changed, 19 insertions(+), 8 deletions(-) diff --git a/complete.tcsh b/complete.tcsh index 895aafe..2696af6 100644 --- a/complete.tcsh +++ b/complete.tcsh @@ -170,8 +170,9 @@ endif complete ping p/1/\$hosts/ complete traceroute p/1/\$hosts/ - complete {talk,ntalk,phone,otalk,ytalk} p/1/'`users | tr " " "\012" | uniq`'/ \ - n/*/\`who\ \|\ grep\ \$:1\ \|\ awk\ \'\{\ print\ \$2\ \}\'\`/ + complete {talk,ntalk,phone,otalk,ytalk} \ + p/1/'`users | tr " " "\012" | uniq`'/ \ + n/*/\`who\ \|\ grep\ \$:1\ \|\ awk\ \'\{\ print\ \$2\ \}\'\`/ complete ftp c/-/"(d i g n v)"/ n/-/\$hosts/ p/1/\$hosts/ n/*/n/ complete ncftp c/-/"(a I N)"/ n/-/\$hosts/ p/1/\$hosts/ n/*/n/ @@ -241,6 +242,8 @@ endif delta diffs edit enter fix get help info \ print prs prt rmdel sccsdiff tell unedit \ unget val what)"/ + complete setenv 'p/1/e/' 'c/*:/f/' + # Complete for MH tools already skipped if ( $?SKIP_MH ) goto skip_mh @@ -883,13 +886,13 @@ endif complete cat c/--/"(number-nonblank number squeeze-blank show-all \ 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 \ version-control help version)"/ \ - c/-/"(b f i u v S V -)"/ \ + c/-/"(b f i S u V v -)"/ \ n/{-S,--suffix}/x:''/ \ 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 \ interactive link preserve parents sparse recursive \ 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 -)"/ \ n/-*r/d/ n/{-S,--suffix}/x:''/ \ 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 \ interactive symbolic suffix verbose version-control \ help version)"/ \ c/-/"(b d F f i n S s V v -)"/ \ n/{-S,--suffix}/x:''/ \ n/{-V,--version-control}/"(t numbered nil existing \ - never simple)"/ n/-/f/ N/-/x:''/ \ + never simple)"/ n/-*/f/ N/-*/x:''/ \ p/1/f/ p/2/x:''/ complete touch c/--/"(date reference time help version)"/ \ c/-/"(a c d f m r t -)"/ \ @@ -916,7 +919,8 @@ endif n/{-m,--mode}/x:''/ n/*/d/ complete rmdir c/--/"(ignore-fail-on-non-empty parents verbose help \ 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 \ R S T v V w W X z Z j I)"/ \ c/-[dtx]*/"( B C f F g G i k K m M O p P \ diff --git a/tcsh.changes b/tcsh.changes index cdf8cc8..1298a89 100644 --- a/tcsh.changes +++ b/tcsh.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Mon Oct 9 08:08:30 UTC 2023 - Dr. Werner Fink + +- 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