blob: 0ca76233330dd11fb8fd3d089bb983d2292e9987 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
$NetBSD: patch-ae,v 1.7 2002/07/24 05:06:00 hubertf Exp $
--- vfs/extfs/ulha.in.orig Wed Jul 24 06:52:24 2002
+++ vfs/extfs/ulha.in
@@ -34,11 +34,16 @@
# Define your awk
AWK=@AWK@
-if ls -de . >& /dev/null;
+if ls -de . >/dev/null 2>&1 ;
then
LS_COMMAND="ls -le"
else
- LS_COMMAND="ls -l --full-time"
+ if ls -dT . >/dev/null 2>&1; # BSD::ls -T == Linux::ls -e
+ then
+ LS_COMMAND="ls -lT"
+ else
+ LS_COMMAND="ls -l --full-time"
+ fi
fi
# Define which archiver you are using with appropriate options
|