pwd_mkdb | 9 years ago | on: Shell Style Guide from Google
pwd_mkdb's comments
pwd_mkdb | 9 years ago | on: Common shell script mistakes (2008)
pwd_mkdb | 9 years ago | on: Common shell script mistakes (2008)
pwd_mkdb | 9 years ago | on: Common shell script mistakes (2008)
most programmers seems to prefer verbosity.
however in my case verbosity slows me down.
pwd_mkdb | 9 years ago | on: Programming Languages as Constraints
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.
pwd_mkdb | 9 years ago | on: Learn the ways of Linux-fu, for free
pwd_mkdb | 9 years ago | on: Goto in bash (2012)
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.