mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 18:14:25 +03:00
* extfs/urar.in (list): better solution to prevent duplication
This commit is contained in:
parent
871ce41fe0
commit
f2d2af671f
@ -1,3 +1,7 @@
|
||||
2000-12-15 Andrew V. Samoilov <sav@bcs.zp.ua>
|
||||
|
||||
* extfs/urar.in (list): better solution to prevent duplication
|
||||
|
||||
2000-12-14 Andrew V. Samoilov <sav@bcs.zp.ua>
|
||||
|
||||
* extfs/urar.in (LC_ALL): set to C to prevent localization,
|
||||
|
@ -3,12 +3,9 @@
|
||||
# Written by andrey joukov
|
||||
# (C) 1996 2:5020/337.13@fidonet.org
|
||||
# Updated by christian.gennerat@alcatel.fr 1999
|
||||
# Andrew V. Samoilov <sav@bcs.zp.ua> 2000
|
||||
# beta version 2.0
|
||||
#
|
||||
|
||||
LC_ALL=C
|
||||
export LC_ALL
|
||||
|
||||
DRAR=/usr/bin
|
||||
RAR=$DRAR/rar
|
||||
UNRAR=$DRAR/unrar # Prefer unrar (freeware)
|
||||
@ -40,7 +37,7 @@ else {
|
||||
$6="-rw-r--r--"
|
||||
printf "%s 1 %-8d %-8d %8d %3s %2d %4d %s %s\n", $6, uid, 0, $1, substr(date, (a[2]-1)*3+1, 3), a[1], a[3], $5, str
|
||||
}
|
||||
}' | sort -r +0 2>/dev/null
|
||||
}' 2>/dev/null
|
||||
}
|
||||
|
||||
mcrarfs_copyin ()
|
||||
@ -95,7 +92,7 @@ umask 077
|
||||
# uncomment this line for debugging
|
||||
#echo "`date +%T` ${0##*/} $1 $2 to=$3 tmp=$4" >>/tmp/${0##*/}.log
|
||||
case "$1" in
|
||||
list) mcrarfs_list "$2"; exit 0;;
|
||||
list) mcrarfs_list "$2" | sort +9 ; exit 0;;
|
||||
rm) mcrarfs_rm "$2" "$3" ; exit 0;;
|
||||
rmdir) mcrarfs_rm "$2" "$3" ; exit 0;;
|
||||
mkdir) mcrarfs_mkdir "$2" "$3" ; exit 0;;
|
||||
|
Loading…
Reference in New Issue
Block a user