[issue982] update/modernize zsh functions simple-extractor, smartcompress & ogg2mp3

Bernhard Tittelbach bts at bts.grml.org
Tue May 10 01:44:50 CEST 2011


Bernhard Tittelbach <xro at realraum.at> added the comment:

as for: 
for i in *; do something-with $i; done
versus
while $1...shift?

the former has word splitting problems in propably just about any shell
scripting language other than zsh. So I consider it bad practise in shell
scripts in general. (Don't want to get too used to the comforts of zsh in case I
need to write a sh script again)

the later has control flow problems, since you absolutely must not forget the
"shift" when you use "continue". But at least it also save miniscule amounts of
memory ;->

----------
assignedto: ft
files: ogg2mp3.zshrc.patch, simple-extractor.zshrc.patch
messages: 3745, 3746, 3747, 3768, 3769, 3770, 3774, 3776, 3777
nosy: btittelbach, ft
priority: feature
status: chatting
title: update/modernize zsh functions simple-extractor, smartcompress & ogg2mp3
topic: zsh

_____________________________________
GRML issue tracker <bts at bts.grml.org>
<http://bts.grml.org/grml/issue982>
_____________________________________


More information about the Bugs-changes mailing list