* extfs/lslR.in: Portability fixes.

This commit is contained in:
Pavel Roskin 2003-06-22 09:54:19 +00:00
parent d83c715fab
commit b0b8f65cdc
2 changed files with 10 additions and 4 deletions

View File

@ -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

View File

@ -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