info 985 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. LC_TIME=C
  2. export LC_TIME
  3. #FISH_HAVE_HEAD 1
  4. #FISH_HAVE_SED 2
  5. #FISH_HAVE_AWK 4
  6. #FISH_HAVE_PERL 8
  7. #FISH_HAVE_LSQ 16
  8. #FISH_HAVE_DATE_MDYT 32
  9. #FISH_HAVE_TAIL 64
  10. res=0
  11. if `echo yes| head -c 1 > /dev/null 2>&1` ; then
  12. res=`expr $res + 1`
  13. fi
  14. if `echo 1 | sed 's/1/2/' >/dev/null 2>&1` ; then
  15. res=`expr $res + 2`
  16. fi
  17. if `echo 1| awk '{print}' > /dev/null 2>&1` ; then
  18. res=`expr $res + 4`
  19. fi
  20. if `perl -v > /dev/null 2>&1` ; then
  21. res=`expr $res + 8`
  22. fi
  23. if `ls -Q / >/dev/null 2>&1` ; then
  24. res=`expr $res + 16`
  25. fi
  26. dat=`ls -lan / 2>/dev/null | head -n 3 | (
  27. while read p l u g s rec; do
  28. if [ -n "$g" ]; then
  29. if [ -n "$l" ]; then
  30. echo "$rec"
  31. fi
  32. fi
  33. done
  34. )`
  35. dat=`echo $dat | cut -c1 2>/dev/null`
  36. r=`echo "0123456789"| grep "$dat"`
  37. if [ -z "$r" ]; then
  38. res=`expr $res + 32`
  39. fi
  40. if `echo yes| tail -c +1 - > /dev/null 2>&1` ; then
  41. res=`expr $res + 64`
  42. fi
  43. echo $res
  44. echo "### 200"