BTS

Issue982

Title update/modernize zsh functions simple-extractor, smartcompress
Priority feature Status resolved
Superseder Nosy List btittelbach, ft
Assigned To ft Topics zsh

Created on 2011-05-09.00:01:19 by btittelbach, last changed 2011-07-29.12:15:03 by mika.

Files
File name Uploaded Type Edit Remove
_simple-extract.grmlzshrc.t2t.patch btittelbach, 2011-05-23.22:17:41 text/x-patch
simple-extractor.zshrc.patch btittelbach, 2011-05-09.00:01:18 text/x-patch
Messages
msg3919 (view) Author: mika Date: 2011-07-29.12:15:03
We believe that your issue has been closed by the upload of
Version 0.4.00 of grml-etc-core from Michael Prokop <mika@grml.org>.
The explanation is attached below

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Fri, 22 Jul 2011 00:02:11 +0200
Source: grml-etc-core
Binary: grml-etc-core
Architecture: source all
Version: 0.4.00
Distribution: unstable
Urgency: low
Maintainer: Michael Prokop <mika@grml.org>
Changed-By: Michael Prokop <mika@grml.org>
Description: 
 grml-etc-core - core ecetera files for the grml system
Changes: 
 grml-etc-core (0.4.00) unstable; urgency=low
 .
   The "this release qualifies for a minor version number bump" release.
 .
   [ Christian Hofstaedtler ]
   * [04acd40] Don't hardcore zsh as shell in screenrc
   * [941cec7] Sync screenrc_* file endings
   * [ec2a092] Add README.md
   * [b83a5a7] Remove completely dead entries from sources.list.grml
   * [f9d123b] Disable *all* repositories in sources.list.grml
   * [35c81f6] Add HP server management tools to sources.list.grml
 .
   [ Frank Terbeck ]
   * [409ee3c] zshrc: Fix umask logic
   * [1dda332] zshrc: Make sure grmlzshrc is only loaded once.
   * [f014559] zshrc: Remove included vcs_info
   * [a8ca94c] Remove comment about vcs_info from the manual
   * [537471e] grmlzshrc.t2t: Add a note about disabling global
     config files
   * [3b0fb3c] zshrc: Put _grmlinitd completion directly into zshrc.
 .
   [ Michael Prokop ]
   * [cbbf17b] zsh: Disable specific umask settings by default.
   * [cdb7985] zsh docs: update copyright information and
     Grml project information.
   * [787c306] zshrc: make sure simple-extract() returns according
     return code when download of an archive file fails and slightly
     adjust error messages.
   * [dce95d8] zsh docs: extend simple-extract() documentation to
     match current implementation.
   * [885aa37] zshrc: Add function cdt() to create a temporary
     directory and change current working directory to it.
   * [4a33608] zshrc: Added function inplaceMkDirs().
     Thanks to Bernhard Tittelbach <bernhard@tittelbach.org>
   * [e82bb71] zshrc: use history-beginning-search-{forward,backward}-end
     instead of the version without "-end".
     Thanks to Frank Terbeck <ft@grml.org>
 .
   [ Bernhard Tittelbach ]
   * [515cabf] zshrc: New function lsdisk to use udev's /dev/disk/
     to list block devices with their LABEL, UUID and IDs
   * [77228e2] zshrc: fix typo in top10
   * [1314616] zshrc: fix typo in edfunc usage text
   * [741e769] zshrc: fixing broken any() function (drop usage of expr)
   * [19cfd45] zshrc: replace ogg2mp3_192 with improved 2mp3_192
   * [e3d86cc] zshrc: also support "+" and <INSERT> as keybindings
     for accept-and-menu-complete.
   * [cecd56b] zshrc: complete word from history with menu using
     ctrl-x ctrl-x
   * [1c9a325] zshrc: keybinding Alt-Delete kills current/right word
   * [18dd9ed] zshrc: history-beginning-search with PageUp/PageDown.
   * [9cb24cf] zshrc: use HOME/END as keybinding for
     beginning-or-end-of-somewhere.
   * [7b48dd9] zshrc: Ctrl/Alt-Cursor moves between words
   * [edf2d10] zshrc: provide completion for refunc function
   * [5dd23e2] zshrc: improve purge() function.
   * [01fe02e] zshrc: new function rundirs() to run shell functions in
     a bunch of directories.
   * [8cd07c9] zshrc: provide screen hardcopy feature to complete word
     from words currently displayed in Screen.
   * [6b3ce44] zshrc: simple-extract on steroids (providing download feature).
     [Closes: issue982]
Checksums-Sha1: 
 b727b8fe6c73f131ea5cc6447849d903ac0065ca 888 grml-etc-core_0.4.00.dsc
 ce9a31f48865a0970b065a3e90b4467a1dfa1da4 154054 grml-etc-core_0.4.00.tar.gz
 78c14d2dda8929c3703bfaa8ee5f0b70afa62f37 155356 grml-etc-core_0.4.00_all.deb
Checksums-Sha256: 
 dafbf35822f1af4005b6942a2488939bf1d52055501c2ef9922ec3973f1cbcae 888 grml-etc-core_0.4.00.dsc
 ebfce9eb1c4de33ef607483a5eb1e997b353048b8669f2d6b0019933e3b1044b 154054 grml-etc-core_0.4.00.tar.gz
 2ed0290b0b1cf5bd669bd34c04dd8de7965671c875d9e2e0c1276f86b7dbf587 155356 grml-etc-core_0.4.00_all.deb
Files: 
 7e9ebe1355a8abfb800b4bb14c7ac8fa 888 grml optional grml-etc-core_0.4.00.dsc
 6ca670e8a8df8d22ac9a18266e4fd2f6 154054 grml optional grml-etc-core_0.4.00.tar.gz
 ac0190ee25617f00f3c7069d8a2c5f15 155356 grml optional grml-etc-core_0.4.00_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAk4orh4ACgkQ2N9T+zficuh4dwCeKu7Sv++61jOz94QDdZFlPFaY
mU4AnAs9HbXw+tCNXXGFQ2+xYihk3DN6
=7enV
-----END PGP SIGNATURE-----
msg3884 (view) Author: mika Date: 2011-07-22.07:51:44
We believe that your issue has been closed by the upload of
Version 0.4.00 of grml-etc-core from Michael Prokop <mika@grml.org>.
The explanation is attached below

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Fri, 22 Jul 2011 00:02:11 +0200
Source: grml-etc-core
Binary: grml-etc-core
Architecture: source all
Version: 0.4.00
Distribution: unstable
Urgency: low
Maintainer: Michael Prokop <mika@grml.org>
Changed-By: Michael Prokop <mika@grml.org>
Description: 
 grml-etc-core - core ecetera files for the grml system
Changes: 
 grml-etc-core (0.4.00) unstable; urgency=low
 .
   The "this release qualifies for a minor version number bump" release.
 .
   [ Christian Hofstaedtler ]
   * [04acd40] Don't hardcore zsh as shell in screenrc
   * [941cec7] Sync screenrc_* file endings
   * [ec2a092] Add README.md
   * [b83a5a7] Remove completely dead entries from sources.list.grml
   * [f9d123b] Disable *all* repositories in sources.list.grml
   * [35c81f6] Add HP server management tools to sources.list.grml
 .
   [ Frank Terbeck ]
   * [409ee3c] zshrc: Fix umask logic
   * [1dda332] zshrc: Make sure grmlzshrc is only loaded once.
   * [f014559] zshrc: Remove included vcs_info
   * [a8ca94c] Remove comment about vcs_info from the manual
   * [537471e] grmlzshrc.t2t: Add a note about disabling global
     config files
   * [3b0fb3c] zshrc: Put _grmlinitd completion directly into zshrc.
 .
   [ Michael Prokop ]
   * [cbbf17b] zsh: Disable specific umask settings by default.
   * [cdb7985] zsh docs: update copyright information and
     Grml project information.
   * [787c306] zshrc: make sure simple-extract() returns according
     return code when download of an archive file fails and slightly
     adjust error messages.
   * [dce95d8] zsh docs: extend simple-extract() documentation to
     match current implementation.
   * [885aa37] zshrc: Add function cdt() to create a temporary
     directory and change current working directory to it.
   * [4a33608] zshrc: Added function inplaceMkDirs().
     Thanks to Bernhard Tittelbach <bernhard@tittelbach.org>
   * [e82bb71] zshrc: use history-beginning-search-{forward,backward}-end
     instead of the version without "-end".
     Thanks to Frank Terbeck <ft@grml.org>
 .
   [ Bernhard Tittelbach ]
   * [515cabf] zshrc: New function lsdisk to use udev's /dev/disk/
     to list block devices with their LABEL, UUID and IDs
   * [77228e2] zshrc: fix typo in top10
   * [1314616] zshrc: fix typo in edfunc usage text
   * [741e769] zshrc: fixing broken any() function (drop usage of expr)
   * [19cfd45] zshrc: replace ogg2mp3_192 with improved 2mp3_192
   * [e3d86cc] zshrc: also support "+" and <INSERT> as keybindings
     for accept-and-menu-complete.
   * [cecd56b] zshrc: complete word from history with menu using
     ctrl-x ctrl-x
   * [1c9a325] zshrc: keybinding Alt-Delete kills current/right word
   * [18dd9ed] zshrc: history-beginning-search with PageUp/PageDown.
   * [9cb24cf] zshrc: use HOME/END as keybinding for
     beginning-or-end-of-somewhere.
   * [7b48dd9] zshrc: Ctrl/Alt-Cursor moves between words
   * [edf2d10] zshrc: provide completion for refunc function
   * [5dd23e2] zshrc: improve purge() function.
   * [01fe02e] zshrc: new function rundirs() to run shell functions in
     a bunch of directories.
   * [8cd07c9] zshrc: provide screen hardcopy feature to complete word
     from words currently displayed in Screen.
   * [6b3ce44] zshrc: simple-extract on steroids (providing download feature).
     [Closes: issue982]
Checksums-Sha1: 
 b727b8fe6c73f131ea5cc6447849d903ac0065ca 888 grml-etc-core_0.4.00.dsc
 ce9a31f48865a0970b065a3e90b4467a1dfa1da4 154054 grml-etc-core_0.4.00.tar.gz
 78c14d2dda8929c3703bfaa8ee5f0b70afa62f37 155356 grml-etc-core_0.4.00_all.deb
Checksums-Sha256: 
 dafbf35822f1af4005b6942a2488939bf1d52055501c2ef9922ec3973f1cbcae 888 grml-etc-core_0.4.00.dsc
 ebfce9eb1c4de33ef607483a5eb1e997b353048b8669f2d6b0019933e3b1044b 154054 grml-etc-core_0.4.00.tar.gz
 2ed0290b0b1cf5bd669bd34c04dd8de7965671c875d9e2e0c1276f86b7dbf587 155356 grml-etc-core_0.4.00_all.deb
Files: 
 7e9ebe1355a8abfb800b4bb14c7ac8fa 888 grml optional grml-etc-core_0.4.00.dsc
 6ca670e8a8df8d22ac9a18266e4fd2f6 154054 grml optional grml-etc-core_0.4.00.tar.gz
 ac0190ee25617f00f3c7069d8a2c5f15 155356 grml optional grml-etc-core_0.4.00_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAk4orh4ACgkQ2N9T+zficuh4dwCeKu7Sv++61jOz94QDdZFlPFaY
mU4AnAs9HbXw+tCNXXGFQ2+xYihk3DN6
=7enV
-----END PGP SIGNATURE-----
msg3883 (view) Author: mika Date: 2011-07-21.22:16:14
We believe that your issue has been closed by the upload of
Version 0.4.00 of grml-etc-core from Michael Prokop <mika@grml.org>.
The explanation is attached below

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Fri, 22 Jul 2011 00:02:11 +0200
Source: grml-etc-core
Binary: grml-etc-core
Architecture: source all
Version: 0.4.00
Distribution: unstable
Urgency: low
Maintainer: Michael Prokop <mika@grml.org>
Changed-By: Michael Prokop <mika@grml.org>
Description: 
 grml-etc-core - core ecetera files for the grml system
Changes: 
 grml-etc-core (0.4.00) unstable; urgency=low
 .
   The "this release qualifies for a minor version number bump" release.
 .
   [ Christian Hofstaedtler ]
   * [04acd40] Don't hardcore zsh as shell in screenrc
   * [941cec7] Sync screenrc_* file endings
   * [ec2a092] Add README.md
   * [b83a5a7] Remove completely dead entries from sources.list.grml
   * [f9d123b] Disable *all* repositories in sources.list.grml
   * [35c81f6] Add HP server management tools to sources.list.grml
 .
   [ Frank Terbeck ]
   * [409ee3c] zshrc: Fix umask logic
   * [1dda332] zshrc: Make sure grmlzshrc is only loaded once.
   * [f014559] zshrc: Remove included vcs_info
   * [a8ca94c] Remove comment about vcs_info from the manual
   * [537471e] grmlzshrc.t2t: Add a note about disabling global
     config files
   * [3b0fb3c] zshrc: Put _grmlinitd completion directly into zshrc.
 .
   [ Michael Prokop ]
   * [cbbf17b] zsh: Disable specific umask settings by default.
   * [cdb7985] zsh docs: update copyright information and
     Grml project information.
   * [787c306] zshrc: make sure simple-extract() returns according
     return code when download of an archive file fails and slightly
     adjust error messages.
   * [dce95d8] zsh docs: extend simple-extract() documentation to
     match current implementation.
   * [885aa37] zshrc: Add function cdt() to create a temporary
     directory and change current working directory to it.
   * [4a33608] zshrc: Added function inplaceMkDirs().
     Thanks to Bernhard Tittelbach <bernhard@tittelbach.org>
   * [e82bb71] zshrc: use history-beginning-search-{forward,backward}-end
     instead of the version without "-end".
     Thanks to Frank Terbeck <ft@grml.org>
 .
   [ Bernhard Tittelbach ]
   * [515cabf] zshrc: New function lsdisk to use udev's /dev/disk/
     to list block devices with their LABEL, UUID and IDs
   * [77228e2] zshrc: fix typo in top10
   * [1314616] zshrc: fix typo in edfunc usage text
   * [741e769] zshrc: fixing broken any() function (drop usage of expr)
   * [19cfd45] zshrc: replace ogg2mp3_192 with improved 2mp3_192
   * [e3d86cc] zshrc: also support "+" and <INSERT> as keybindings
     for accept-and-menu-complete.
   * [cecd56b] zshrc: complete word from history with menu using
     ctrl-x ctrl-x
   * [1c9a325] zshrc: keybinding Alt-Delete kills current/right word
   * [18dd9ed] zshrc: history-beginning-search with PageUp/PageDown.
   * [9cb24cf] zshrc: use HOME/END as keybinding for
     beginning-or-end-of-somewhere.
   * [7b48dd9] zshrc: Ctrl/Alt-Cursor moves between words
   * [edf2d10] zshrc: provide completion for refunc function
   * [5dd23e2] zshrc: improve purge() function.
   * [01fe02e] zshrc: new function rundirs() to run shell functions in
     a bunch of directories.
   * [8cd07c9] zshrc: provide screen hardcopy feature to complete word
     from words currently displayed in Screen.
   * [6b3ce44] zshrc: simple-extract on steroids (providing download feature).
     [Closes: issue982]
Checksums-Sha1: 
 acf611b9c19e01e8bb952d5435eede712e111079 888 grml-etc-core_0.4.00.dsc
 53266c66b72a9292f596cbdefb0263d951a30859 154045 grml-etc-core_0.4.00.tar.gz
 421931bdfaff049a93097407ee364c4e4ce63b7d 155356 grml-etc-core_0.4.00_all.deb
Checksums-Sha256: 
 b0ab2996c1acbb59ce1cc9b4cf8c09364fb6f8f84e77d7a41b96df33cc3d3946 888 grml-etc-core_0.4.00.dsc
 ac5f612b43ac6d3024722aee6b670c02cdb05f584db40cdba2c6271181d3eed9 154045 grml-etc-core_0.4.00.tar.gz
 65803b885ee982058b63a6561f1d252173f7c0370cae8ae9a9f6fde779f3b73c 155356 grml-etc-core_0.4.00_all.deb
Files: 
 684620b865441f9ee5adba897aa52c43 888 grml optional grml-etc-core_0.4.00.dsc
 d117c28ba81a801e011f243b21ad8fcb 154045 grml optional grml-etc-core_0.4.00.tar.gz
 41bc8d52a8756d7c8e11ffa142549ec3 155356 grml optional grml-etc-core_0.4.00_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAk4opDIACgkQ2N9T+zficuhdpgCbBa8fjY/xQToHcnZj955em42v
veMAn1U4LTLpw/pW5/muiH+WQxHaBaEK
=QyU4
-----END PGP SIGNATURE-----
msg3882 (view) Author: mika Date: 2011-07-21.16:26:40
Applied to grml-etc-core.git, fixed in git therefore.
Will be closed by upload of new grml-etc-core version.
Thanks!
msg3821 (view) Author: btittelbach Date: 2011-05-27.17:40:31
ogg2mp3 isses now has it's own bug:
http://bts.grml.org/grml/issue997
msg3806 (view) Author: btittelbach Date: 2011-05-23.22:17:41
documentation patch as requested
msg3791 (view) Author: btittelbach Date: 2011-05-19.23:38:22
moved current version of my simple-extract out of file mentioned in the link
below. so here's the current version: http://paste.grml.org/427/
it's still not pretty though. (although much better than the original)
please improve or extend at your convenience
msg3781 (view) Author: btittelbach Date: 2011-05-10.13:17:40
changed the script to use 
for ARCHIVE in "${@}" 
in case you give it another look after the release.

Instead of posting the changed version into pastezone, for now I'll leave you
with a link to my changed .zshrc because I still have hope that I will find the
time to improve upon that big ugly if else fi block somewhen in the future.

https://www.tittelbach.at/files/.zshrc
msg3780 (view) Author: ft Date: 2011-05-10.13:08:04
Bernhard Tittelbach wrote:
> right. "$@" does not have word splitting problems even on (ba)sh
>
> $* on the other hand will separate by IFS, which is a problem if e.g. you have
> filenames with spaces.
>
> so yeah, if you meant "$@" then you are right, it just comes down to habituation
> in this case.

`$*' is something entirely different, yes. I've written a lengthy page
in zsh's wiki that explains some of the subtle differences between $*
and $@, double-quoted or not.

"$@" (the quoted form) however is rock solid. And also very
idiomatic. So idiomatic in fact that there's a short hand:

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

and

  % for i; do ...; done

are the same.

Also, while-shift is destructive with respect to $@. for-"$@" is not.

Regards, Frank
msg3779 (view) Author: btittelbach Date: 2011-05-10.13:02:00
right. "$@" does not have word splitting problems even on (ba)sh

$* on the other hand will separate by IFS, which is a problem if e.g. you have
filenames with spaces.

so yeah, if you meant "$@" then you are right, it just comes down to habituation
in this case.
msg3778 (view) Author: ft Date: 2011-05-09.23:56:45
Bernhard Tittelbach wrote:
> Bernhard Tittelbach <xro@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
msg3777 (view) Author: btittelbach Date: 2011-05-09.23:44:49
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 ;->
msg3776 (view) Author: btittelbach Date: 2011-05-09.23:39:58
rewrote it without the use of eval, but it's even longer and uglier now than the
initial version where each archive type appeared in two case/esac.
at least it's easily extendable for new archive types

posting it here just for your viewing pleasure ;-)
http://paste.grml.org/410/
msg3774 (view) Author: btittelbach Date: 2011-05-09.21:53:18
mhh, good points.
I resorted to using eval since there seems to be no other way to "evaluate" a
process substitution inside a variable. This is possible with (e) for many
substitutions, but not for process subst.
I would be very interessted to hear if there are better way's to do this. Maybe
I too will ask around a bit on #zsh.

As for documentation: sure no problem
As for testing: I did extensive testing, but not on grml.

anyway, looking forward to the new release :-)
Getting back to you on this issue, if I can improve the function.
msg3770 (view) Author: ft Date: 2011-05-09.20:49:42
Bernhard Tittelbach wrote:
[...]
> +      *.(tar.bz2|tbz2|tbz))     eval tar -xvjf $ARCHIVE               ;;
> +      *.(tar.gz|tgz))           eval tar -xvzf $ARCHIVE               ;;
> +      *.(tar.xz|txz|tar.lzma))  eval tar -xvJf $ARCHIVE               ;;
> +      *.tar)                    eval tar -xvf $ARCHIVE                ;;
> +      *.rar)                    eval unrar x $SEEKABLEARCHIVE         ;;
> +      *.lzh)                    eval lha x $SEEKABLEARCHIVE           ;;
> +      *.(zip|jar))              eval unzip $SEEKABLEARCHIVE           ;;
> +      *.deb)                    eval ar -x $SEEKABLEARCHIVE           ;;
> +      *.bz2)                    eval bzip2 -d -c $ARCHIVE > $GZTARGET ;;
> +      *.(gz|Z))                 eval gzip -d -c $SEEKABLEARCHIVE > $GZTARGET  ;;
> +      *.(xz|lzma))              eval xz -d -c $ARCHIVE > $GZTARGET    ;;
> +      *.7z)                     eval 7z x $SEEKABLEARCHIVE            ;;
> +      *)                        print "Error: '$1' has unknown archive type." >&2 ;;

Also, `eval' should never be used. I mean...

  % simple-extract 'foo.tar.gz;echo I could have rmed your \~.gz'

We've been talking about this a little on IRC, and it's probably not
worth going through a lot of trouble to save one manual `wget'.

Not with `eval' in any case.

Regards, Frank
msg3769 (view) Author: ft Date: 2011-05-09.20:21:14
Bernhard Tittelbach wrote:
> New submission from Bernhard Tittelbach <xro@realraum.at>:
>
> discovered that above mentionend functions are a bit outdated.
> ogg2mp3 doesn't work as advertised on my system, maybe lame changed behaviour ?
> the archive functions don't know about xz and the simple-extractor can generally
> use some overhowl.
>
> beside fixing the above, I rewrote simple-extractor so that:
> * it behaves consistently for all archive types (no more deleting of source file
> or not depending on archive type e.g. .gz vs .tar.gz)
> * it takes filepaths as well as URIs
> * it handles more archive types
> * it optionally deletes the source archive

I like the general tone of this one. Two things though: First, since
this is a substantial change - and although I didn't see anything fishy
in it - we're close to a release right now, so how well did you test
this? :-)

And second: Since you've extended the function's behaviour, could you
also update the manual in `doc/grmlzshrc.t2t' accordingly, please?

Regards, Frank
msg3768 (view) Author: ft Date: 2011-05-09.20:17:41
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
msg3747 (view) Author: btittelbach Date: 2011-05-09.00:02:53
also: in my .zshrc.local I have defined
alias se=simple-extractor

which is very useful ;-)
e.g. 
# se http://blabla/sourfile.tar.bz2
msg3746 (view) Author: btittelbach Date: 2011-05-09.00:01:40
here is the ogg2mp3 patch
msg3745 (view) Author: btittelbach Date: 2011-05-09.00:01:18
discovered that above mentionend functions are a bit outdated.
ogg2mp3 doesn't work as advertised on my system, maybe lame changed behaviour ?
the archive functions don't know about xz and the simple-extractor can generally
use some overhowl.

beside fixing the above, I rewrote simple-extractor so that:
* it behaves consistently for all archive types (no more deleting of source file
or not depending on archive type e.g. .gz vs .tar.gz)
* it takes filepaths as well as URIs
* it handles more archive types
* it optionally deletes the source archive
History
Date User Action Args
2011-07-29 12:15:03mikasetmessages: + msg3919
2011-07-22 07:51:46mikasetmessages: + msg3884
2011-07-21 22:16:18mikasetstatus: fixed-in-git -> resolved
messages: + msg3883
2011-07-21 16:26:41mikasetstatus: chatting -> fixed-in-git
messages: + msg3882
2011-05-27 17:40:37btittelbachsetfiles: - ogg2mp3.zshrc.patch
2011-05-27 17:40:32btittelbachsetmessages: + msg3821
title: update/modernize zsh functions simple-extractor, smartcompress & ogg2mp3 -> update/modernize zsh functions simple-extractor, smartcompress
2011-05-23 22:17:41btittelbachsetfiles: + _simple-extract.grmlzshrc.t2t.patch
messages: + msg3806
2011-05-19 23:38:23btittelbachsetmessages: + msg3791
2011-05-10 13:17:41btittelbachsetmessages: + msg3781
2011-05-10 13:08:04ftsetmessages: + msg3780
2011-05-10 13:02:01btittelbachsetmessages: + msg3779
2011-05-09 23:56:47ftsetmessages: + msg3778
2011-05-09 23:44:50btittelbachsetmessages: + msg3777
2011-05-09 23:39:59btittelbachsetmessages: + msg3776
2011-05-09 21:53:19btittelbachsetmessages: + msg3774
2011-05-09 20:49:43ftsetmessages: + msg3770
2011-05-09 20:21:15ftsetmessages: + msg3769
2011-05-09 20:17:41ftsetmessages: + msg3768
2011-05-09 00:02:53btittelbachsetmessages: + msg3747
2011-05-09 00:01:40btittelbachsetfiles: + ogg2mp3.zshrc.patch
status: unread -> chatting
messages: + msg3746
2011-05-09 00:01:19btittelbachcreate