[Discuss] through the looking glass
dan moylan
jdm at moylan.us
Fri Jun 1 19:32:27 EDT 2018
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]
More information about the Discuss
mailing list