- 论坛徽章:
- 0
|
#!/bin/sh
veg1=carrots
veg2=tomatoes
echo "$veg1"
echo "$veg2"
if [[ "$veg1" < "$veg2" ]]
then
echo "Although $veg1 precede $veg2 in the dictionary,"
echo "this implies nothing about my culinary preferences."
else
echo "What kind of dictionary are you using, anyhow?"
fi
prg="${0}"
prgdir=`cd . >/dev/null; pwd`
echo "test $prgdir dir."
结果显示为
carrots
tomatoes
Although carrots precede tomatoes in the dictionary,
this implies nothing about my culinary preferences.
dir./home/gsu/workspace/netbean/interview_sun
问题就 最后一行 “dir./home/gsu/workspace/netbean/interview_sun”
它应该显示为“test /home/gsu/workspace/netbean/interview_sun dir.”
怎一回事阿? |
|