Package: abcde
Version: 2.3.99.6-1
Severity: normal

in the script there is an environment variable used like this:
    if [ "$USEPIPES" = "y" ]; then
      REDIR=""
    else
      REDIR=">&2"
    fi
    ls >/dev/null $REDIR

the "indirect" redirection in REDIR does not work: if the test on
USEPIPES fails, stdout of the ls command is not redirected to stderr,
the effect is rather that stdout is untouched and the command complains
about the non existing file named ">&2"

on my Debian-unstable system the script works without a problem, I
assume that the reason is that the the test succeeds and the REDIR is
defined empty.

I have tried to run abcde with "-P" (it's the options that forces USEPIPES
to "y") and I get exactly the same behaviour.  I did not dig too deep
in the script to understand how to force USEPIPES to "n", meet this
"indirect redirection" and file a more concrete bug report.

I am reporting this as bug anyway because I'm trying to port abcde to
macosx and there the test does not succeed, REDIR is defined as ">&2",
the code using it fails and there I can't use the "-P" option: it says
that piping is not supported by the encoding program.

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: powerpc (ppc)

Kernel: Linux 2.6.25-2-powerpc
Locale: LANG=en_DK.UTF-8, LC_CTYPE=en_DK.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages abcde depends on:
ii  cd-discid             0.9-1              CDDB DiscID utility
ii  cdparanoia            3.10+debian~pre0-4 audio extraction tool for sampling
ii  flac                  1.2.1-1.2          Free Lossless Audio Codec - comman
ii  vorbis-tools          1.2.0-6            several Ogg Vorbis tools
ii  wget                  1.11.4-2           retrieves files from the web

abcde recommends no packages.

Versions of packages abcde suggests:
ii  distmp3         0.1.9.ds1-4.3            A Perl client and daemon for distr
ii  eject           2.1.5+deb1+cvs20081104-6 ejects CDs and operates CD-Changer
ii  eyed3           0.6.17-1                 Display and manipulate id3-tags on
ii  id3             0.15-1                   An ID3 Tag Editor
ii  id3v2           0.1.11-3                 A command line id3v2 tag editor
ii  mkcue           1-2.1                    Generates a CUE sheet from a CD
ii  mp3gain         1.4.6-8                  Lossless mp3 normalizer with stati
ii  normalize-audio 0.7.7-4                  adjusts the volume of WAV, MP3 and
pn  python-musicbra <none>                   (no description available)
ii  vorbisgain      0.36-3.1                 add Replay Gain volume tags to Ogg

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to