Skip to content

Commit ad44019

Browse files
committed
DEBUG: tar set -x
1 parent a9b3d60 commit ad44019

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,4 +99,4 @@ jobs:
9999
runs-on: macos-latest
100100
steps:
101101
- uses: actions/checkout@v4
102-
- run: env PYTESTFLAGS="--verbose -p no:cacheprovider --color=yes" test/macos-script.sh
102+
- run: env PYTESTFLAGS="--verbose -p no:cacheprovider --color=yes -k '(TestTar and test_25) or TestPs'" test/macos-script.sh

completions/tar

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,7 @@ _comp_cmd_tar__preparse_cmdline()
299299
# Generate completions for -f/--file.
300300
_comp_cmd_tar__file_option()
301301
{
302+
set -x
302303
local ext="$1"
303304

304305
case "$tar_mode" in
@@ -310,6 +311,7 @@ _comp_cmd_tar__file_option()
310311
_comp_compgen_filedir "$ext"
311312
;;
312313
esac
314+
set +x
313315
}
314316

315317
# Returns truth if option requires argument. No equal sign must be pasted.
@@ -510,6 +512,7 @@ _comp_cmd_tar__is_bsdtar()
510512

511513
_comp_cmd_tar__detect_ext()
512514
{
515+
set -x
513516
local tars='@(@(tar|spkg)?(.@(Z|[bgx]z|bz2|lz?(ma|o)|zst))|t@([abglx]z|b?(z)2|zst)|cbt|gem|xbps)'
514517
if _comp_cmd_tar__is_bsdtar; then
515518
# https://github.com/libarchive/libarchive/wiki/LibarchiveFormats
@@ -562,6 +565,7 @@ _comp_cmd_tar__detect_ext()
562565
;;
563566
esac
564567
fi
568+
set +x
565569
}
566570

567571
_comp_cmd_tar__gnu()
@@ -787,6 +791,7 @@ _comp_cmd_tar__posix()
787791

788792
local ext
789793

794+
set -x
790795
_comp_cmd_tar__detect_ext
791796

792797
_comp_cmd_tar__adjust_PREV_from_old_option
@@ -796,6 +801,7 @@ _comp_cmd_tar__posix()
796801
_comp_cmd_tar__try_mode && return
797802

798803
_comp_cmd_tar__try_list_archive && return
804+
set +x
799805

800806
# file completion on relevant files
801807
_comp_compgen_filedir

0 commit comments

Comments
 (0)