|
|
@ -41,7 +41,9 @@ while (( $# > 0 )); do
|
|
|
|
|| lzcat "$1" | tar x${verbose:+v}f - ;;
|
|
|
|
|| lzcat "$1" | tar x${verbose:+v}f - ;;
|
|
|
|
(*.tar) tar t${verbose:+v}f "$1" ;;
|
|
|
|
(*.tar) tar t${verbose:+v}f "$1" ;;
|
|
|
|
(*.zip) unzip -l${verbose:+v} "$1" ;;
|
|
|
|
(*.zip) unzip -l${verbose:+v} "$1" ;;
|
|
|
|
(*.rar) unrar ${${verbose:+v}:-l} "$1" ;;
|
|
|
|
(*.rar) unrar &> /dev/null \
|
|
|
|
|
|
|
|
&& unrar ${${verbose:+v}:-l} "$1" \
|
|
|
|
|
|
|
|
|| rar ${${verbose:+v}:-l} "$1" ;;
|
|
|
|
(*.7z) 7za l "$1" ;;
|
|
|
|
(*.7z) 7za l "$1" ;;
|
|
|
|
(*)
|
|
|
|
(*)
|
|
|
|
print "$0: cannot list: $1" >&2
|
|
|
|
print "$0: cannot list: $1" >&2
|
|
|
|