mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
* extfs/lslR.in: Portability fixes.
This commit is contained in:
parent
d83c715fab
commit
b0b8f65cdc
@ -1,3 +1,7 @@
|
||||
2003-06-24 Andrew V. Samoilov <sav@bcs.zp.ua>
|
||||
|
||||
* extfs/lslR.in: Portability fixes.
|
||||
|
||||
2003-06-21 Jindrich Makovicka <makovick@kmlinux.fjfi.cvut.cz>
|
||||
|
||||
* ftpfs.c (command): Fix misuse of the status variable. Don't
|
||||
|
@ -5,6 +5,10 @@
|
||||
# (to allow spaces in filenames)
|
||||
#
|
||||
# It's assumed that lslR was generated in C locale.
|
||||
LC_ALL=C
|
||||
export LC_ALL=C
|
||||
|
||||
AWK=@AWK@
|
||||
|
||||
mclslRfs_list () {
|
||||
case "$1" in
|
||||
@ -15,7 +19,7 @@ case "$1" in
|
||||
*) MYCAT="cat";;
|
||||
esac
|
||||
|
||||
$MYCAT "$1" | @AWK@ '
|
||||
$MYCAT "$1" | $AWK '
|
||||
BEGIN {
|
||||
dir="";
|
||||
# Pattern to match 8 first fields.
|
||||
@ -31,7 +35,7 @@ BEGIN {
|
||||
else sub(/:$/, "/", dir);
|
||||
next;
|
||||
}
|
||||
{ $9 != "" } {
|
||||
( $9 != "" ) {
|
||||
# gensub() is not portable.
|
||||
name=$0
|
||||
sub(rx, "", name)
|
||||
@ -41,8 +45,6 @@ BEGIN {
|
||||
}'
|
||||
}
|
||||
|
||||
export LC_ALL="C"
|
||||
|
||||
case "$1" in
|
||||
list) mclslRfs_list "$2"; exit 0;;
|
||||
esac
|
||||
|
Loading…
Reference in New Issue
Block a user