mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 12:32:40 +03:00
* vfs/extfs/a: Set environment to force date and time format
suitable for VFS. Fix support for long filenames with spaces.
This commit is contained in:
parent
6b0df00830
commit
5dbffb96c2
@ -1,3 +1,8 @@
|
||||
2002-11-08 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* vfs/extfs/a: Set environment to force date and time format
|
||||
suitable for VFS. Fix support for long filenames with spaces.
|
||||
|
||||
2002-11-07 Andrew V. Samoilov <sav@bcs.zp.ua>
|
||||
|
||||
* syntax/ada95.syntax: Highlight "then" and "else".
|
||||
|
@ -17,6 +17,9 @@ $mcopy = "mcopy -noQ";
|
||||
$0 =~ s|.*/||;
|
||||
$disk = $0;
|
||||
|
||||
$ENV{MTOOLS_DATE_STRING} = "mm-dd-yyyy";
|
||||
$ENV{MTOOLS_TWENTY_FOUR_HOUR_CLOCK} = "1";
|
||||
|
||||
SWITCH: for ( $ARGV[0] ) {
|
||||
/list/ && do {
|
||||
@dirs = get_dirs("");
|
||||
@ -75,7 +78,7 @@ sub get_dirs {
|
||||
$_ = substr($_,12);
|
||||
s/^[ ]+//;
|
||||
|
||||
($size,$date,$time,$longname) = split(/[ \t]+/);
|
||||
($size,$date,$time,$longname) = split(/[ \t]+/, $_, 4);
|
||||
|
||||
@lst = split(/([:ap])/, $time);
|
||||
$lst[0] += 12 if ($lst[3] eq "p");
|
||||
|
Loading…
Reference in New Issue
Block a user