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

Frank Terbeck bts at bts.grml.org
Tue May 10 01:56:47 CEST 2011


Frank Terbeck <ft at grml.org> added the comment:

Bernhard Tittelbach wrote:
> 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.

No it does not.

Although I meant

for i in "$@"; do ...

But neither has any word splitting problems.

Regards, Frank

----------
assignedto: ft
files: ogg2mp3.zshrc.patch, simple-extractor.zshrc.patch
messages: 3745, 3746, 3747, 3768, 3769, 3770, 3774, 3776, 3777, 3778
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