5 # Copyright ? U. N. Known
7 # This filesystem is _dangerous_. It used to create symlinks in filesystem
8 # with zoo file, it used to happily delete file from your filesystem.
9 # Now it is 'only' very ugly (it creates temporary files in ~/.mc/
16 $ZOO l $1 | @AWK@ -v uid=${UID-0} '
18 /^---/ { if (hyphens > 0) exit 0; hyphens=1; next }
31 printf "drwxr-xr-x 1 %-8d %-8d %8d %s %2d %4d %02d:%02d %s\n", uid, 0, $1, $5, $4, $6, a[1], a[2], $8
33 printf "-rw-r--r-- 1 %-8d %-8d %8d %s %2d %4d %02d:%02d %s\n", uid, 0, $1, $5, $4, $6, a[1], a[2], $8
40 $ZOO xp $1 $2 | tail +6l > $3 2>/dev/null
44 # zoo is stupid and won't be happy when the name has no extension.
45 # We have to do a small trick :) [pretty dirty, broken hack -- pavel]
46 if echo $2 | grep '\.zoo$'; then
49 SYMLINK=~/.mc/temporary.$2.zoo
50 if test -f $SYMLINK; then
51 SYMLINK=~/.mc/temporary.$2.
53 if test -f $SYMLINK; then
54 echo "Ugh. I did not expect this to happen. Cleanup your ~/.mc."
59 trap 'rm -f $SYMLINK' 0 1 2 3 5 13 15
66 list) mczoofs_list $2; exit $?;;
67 copyout) mczoofs_copyout $2 $3 $4; exit $?;;