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

Frank Terbeck bts at bts.grml.org
Mon May 9 22:17:41 CEST 2011


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

Bernhard Tittelbach wrote:
> +    while [[ -n "$1"  ]]; do
> +      emulate -L zsh
> +      oggdec -o "$TMPFILE" $1
> +      lame -b 192 -v -h --replaygain-fast "$TMPFILE" ${1:r}.mp3
> +      shift
> +    done

How about

for i in *; do something-with $i; done

Instead of while $1...shift?

Regards, Frank

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