Ticket #2242 (improved FISH)
[midnight-commander.git] / lib / vfs / mc-vfs / fish / info
blobfc801727bee45d8749e16aa6b99e4899ae058d92
1 export LC_TIME=C
2 #FISH_HAVE_HEAD         1
3 #FISH_HAVE_SED          2
4 #FISH_HAVE_AWK          4
5 #FISH_HAVE_PERL         8
6 #FISH_HAVE_LSQ         16
7 #FISH_HAVE_DATE_MDYT   32
8 res=0
9 if `echo yes| head -c 1 > /dev/null 2>&1` ; then
10     res=`expr $res + 1`
12 if `sed --version >/dev/null 2>&1` ; then
13     res=`expr $res + 2`
15 if `awk --version > /dev/null 2>&1` ; then
16     res=`expr $res + 4`
18 if `perl -v > /dev/null 2>&1` ; then
19     res=`expr $res + 8`
21 if `ls -Q / >/dev/null 2>&1` ; then
22     res=`expr $res + 16`
24 dat=`ls -lan / 2>/dev/null | head -n 3|tail -n 1 | (
25     while read p l u g s rec; do
26         if [ -n "$g" ]; then
27             if [ -n "$l" ]; then
28                 echo "$rec"
29             fi
30         fi
31     done
32 ) |cut -c1 2>/dev/null`
33 r=`echo "0123456789"| grep "$dat"`
34 if [ -z "$r" ]; then
35     res=`expr $res + 32`
37 echo $res
38 echo "### 200"