3 # Written by Ilia Maslakov <il.smind@gmail.com>
5 # (C) 2020 The Free Software Foundation.
10 # Define which archiver you are using with appropriate options
14 # The 'list' command executive
17 # List the contents of the archive and sort it out
18 $UNAR_LIST -l "$1" |
$AWK -v uid
=`id -nu` -v gid
=`id -ng` '
27 if (index($2, "D") != 0)
31 printf "%s 1 %s %s %d %02d/%02d/%02d %02d:%02d %s\n", pr, uid, gid, $3, a[3], a[2], a[1], b[1], b[2], $8
35 # The 'copyout' command executive to copy displayed files to a destination
38 TMPDIR
=`mktemp -d "${MC_TMPDIR:-/tmp}/mctmpdir-uha.XXXXXX"` ||
exit 1
40 $UNAR_GET "$1" "$2" -o "$TMPDIR" >/dev
/null
41 we
=`basename "$1" | sed -E 's|^(.*?)\.\w+$|\1|'`
42 cat "$TMPDIR/$we/$2" > "$3"
54 list
) mc_unar_fs_list
"$@" ;;
55 copyout
) mc_unar_fs_copyout
"$@" ;;