mirror of
https://github.com/MidnightCommander/mc
synced 2025-03-30 11:42:54 +03:00
* extfs/uar.in (mcarfs_list): Parse date reported by ar back to three
fields as vfs_parse_filedate() only expects three date fields now.
This commit is contained in:
parent
2a7a8fa19d
commit
866d39e32c
@ -1,3 +1,8 @@
|
||||
2006-03-18 Leonard den Ottolander <leonard den ottolander nl>
|
||||
|
||||
* extfs/uar.in (mcarfs_list): Parse date reported by ar back to three
|
||||
fields as vfs_parse_filedate() only expects three date fields now.
|
||||
|
||||
2006-03-08 Pavel Tsekov <ptsekov@gmx.net>
|
||||
|
||||
* ftpfs.c (ftpfs_dir_load): When retrieving the directory listing
|
||||
|
@ -12,7 +12,13 @@ XAR=ar
|
||||
|
||||
mcarfs_list ()
|
||||
{
|
||||
$XAR tv "$1" | sed 's,^,-,;s, , 1 ,;s,/, ,'
|
||||
# If $temp_replace string is part of the filename that part might get lost
|
||||
temp_replace='Unique Separator String'
|
||||
thisyear="`date +%Y`"
|
||||
$XAR tv "$1" | sed 's,^,-,;s, , 1 ,;s,/, ,' |
|
||||
sed -e "s/\( [0-2][0-9]\:[0-5][0-9]\)\( $thisyear \)\(.*\)/\1$temp_replace\3/" |
|
||||
sed -e "s/\( [0-2][0-9]\:[0-5][0-9] \)\([12][0-9][0-9][0-9] \)\(.*\)/ \2\3/" |
|
||||
sed -e "s/$temp_replace/ /"
|
||||
}
|
||||
|
||||
mcarfs_copyout ()
|
||||
|
Loading…
x
Reference in New Issue
Block a user