On most systems, theres not that big difference:
But on others, sh is a stripped version of bash, meaning some of the neat functioning features found in bash is missing.redhead@sindre{51} ~> ll /bin/sh
lrwxrwxrwx 1 root root 4 nov 8 2001 /bin/sh -> bash*
redhead@sindre{52} ~>
How ever, the case/while/for statements in the two languages are the same, you still have your
case x in
y) something;;
esacfor x in y; do
something
donewhile (x) do
something
endIt could be if you use an unnoted -eq/-ne/-lt (altho these are valid in both)if [ x ]; then
something
fi


Reply With Quote

Bookmarks