[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: better init.d/* : who carres ?



Andrew Porter a écrit :
bash is actually pretty good if you know how to use it (and most of the
ksh93 comliant functions) - the problem is that most programmers don't.
The ${} constructs add a lot of power and allow the programmer to be
less reliant on external tools.

zsh provides some things i've never seen in bash, for example :

- alternative syntax for complete commands, so you can write
  for f (*gz) gzip -d $f

- file globbing flags, so you can set case insensitivity, sort by file
  size ...

- a lot of good things like = generation to search in $PATH

at least, i think zsh is better because it's almost 200k thinner:

% ls -sh =zsh4 =bash
616K /bin/bash  456K /bin/zsh4

Your example is little different to a good ksh/bash implementation
(though pipes aren't a bad thing so shouldn't necessarily be shyed away
from).

sure! but it's faster without them.

regards
mc



Reply to: