pwd_mkdb
Joined 10 years ago
Karma
15
Submissions
8
Member since
Jun 3
Joined 10 years ago
most programmers seems to prefer verbosity.
however in my case verbosity slows me down.
i would guess that even with today's popular verbose languages with hundreds of libraries, most programmers only know or use a subset of the language and libraries. strangely when i try to use these languages i feel too constrained. only because i feel i am trying to fit my own thinking into some other programmer's thinking.
sometimes this seems worth it. other times (most times) not.
whereas with assembly, i only have to fit my thinking to what the computer can do. this seems like what i should be doing if i am trying to program a computer.
case ${1-start} in
start)
# your script goes here...
x=100 $0 foo
;;
mid)
echo "This is not printed!"
x=101 $0 foo
;;
foo)
x=${x:-10}
echo x is $x
esac
requiring the use of bash for non-interactive use? good grief.
is it possible this company has a linux bias?
the usefulness of a minimal scripting shell cannot be denied. even with linux distribs that use bash, we almost always see busybox in use. busybox is more like the almquist sh than bash.
with sh, bash-only features may not work.
for example, shellshock did not work with almquist sh.
why are bash script not given a .bash file extension to distinguish them from sh scripts (.sh extension)?
.ksh extension is often used for korn shell scripts.