Boston Linux & UNIX was originally founded in 1994 as part of The Boston Computer Society. We meet on the third Wednesday of each month, online, via Jitsi Meet.

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss] through the looking glass



  moylan qst[1119] cat ./b2
  #! /bin/bash
  # b2

    st1="abc"
    st2="xyz"

    if [ $st1 = $st1 ] ; then
	    echo "$st1 = $st1"
    fi
    if [ $st1 = $st2 ] ; then
	    echo "$st1 = $st2"
    fi
    if [ $st1 > $st2 ] ; then
	    echo "$st1 > $st2"
    fi
    if [ $st2 > $st1 ] ; then
	    echo "$st2 > $st1"
    fi

    if [ $st1 > $st2 ] && [ $st2 > $st1 ] ; then
	    echo "WTF"
    fi

  moylan qst[1120] ./b2
  abc = abc
  abc > xyz
  xyz > abc
  WTF

also b2 writes out empty files abc and xyz.

i've surely missed something fundamental, or did i just
step into an alternate universe?

ole dan

j. daniel moylan
84 harvard ave
brookline, ma 02446-6202
617-777-0207 (cel)
jdm at moylan.us
www.moylan.us
[no html pls]



BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org