Matt Zimmerman
2004-Oct-03 14:50 UTC
[Flac-dev] [wolfgang@rohdewald.de: Bug#274700: flac: --export-vc-to should quote strings containing spaces]
----- Forwarded message from Wolfgang Rohdewald <wolfgang@rohdewald.de> ----- Date: Sun, 03 Oct 2004 19:24:38 +0200 From: Wolfgang Rohdewald <wolfgang@rohdewald.de> Resent-From: Wolfgang Rohdewald <wolfgang@rohdewald.de> To: Debian Bug Tracking System <submit@bugs.debian.org> Subject: Bug#274700: flac: --export-vc-to should quote strings containing spaces Package: flac Version: 1.1.0-11 Severity: normal eval `metaflac --export-vc-to - "$flacfile"` fails if a vc-field contains spaces because the strings are not quoted. If they were, using metaflac in scripts would be much easier like in eval `metaflac --export-vc-to - "$flacfile"` id3 -A "$ALBUM" -t "$TITLE" -a "$ARTIST" -y "$DATE" -g "$GENRE" -T "$TRACKNUMBER" "$mp3file" Now I need to do this nasty workaround: eval `metaflac --export-vc-to - "$flacfile" | sed s'/=/="/' | sed 's/$/"/'` -- System Information: Debian Release: 3.1 APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.4.27 Locale: LANG=de_DE@euro, LC_CTYPE=de_DE@euro (ignored: LC_ALL set to C) Versions of packages flac depends on: ii libc6 2.3.2.ds1-17 GNU C Library: Shared libraries an ii libflac4 1.1.0-11 Free Lossless Audio Codec - runtim ii libogg0 1.1.0-1 Ogg Bitstream Library ii liboggflac1 1.1.0-11 Free Lossless Audio Codec - runtim -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org ----- End forwarded message ----- -- - mdz
Josh Coalson
2004-Oct-06 09:29 UTC
[Flac-dev] [wolfgang@rohdewald.de: Bug#274700: flac: --export-vc-to should quote strings containing spaces]
that's a nice trick but I don't think it should be integrated into metaflac (not yet at least). there are other things that can appear in comments that will throw this off too (double quotes, newlines). this has come up on the vorbis lists too in the past and has not been resolved as far as I know. Josh --- Matt Zimmerman <mdz@debian.org> wrote:> ----- Forwarded message from Wolfgang Rohdewald > <wolfgang@rohdewald.de> ----- > > Date: Sun, 03 Oct 2004 19:24:38 +0200 > From: Wolfgang Rohdewald <wolfgang@rohdewald.de> > Resent-From: Wolfgang Rohdewald <wolfgang@rohdewald.de> > To: Debian Bug Tracking System <submit@bugs.debian.org> > Subject: Bug#274700: flac: --export-vc-to should quote strings > containing spaces > > Package: flac > Version: 1.1.0-11 > Severity: normal > > > eval `metaflac --export-vc-to - "$flacfile"` > > fails if a vc-field contains spaces because the strings are not > quoted. If they were, using metaflac in scripts would be much easier > like in > > eval `metaflac --export-vc-to - "$flacfile"` > id3 -A "$ALBUM" -t "$TITLE" -a "$ARTIST" -y "$DATE" -g "$GENRE" -T > "$TRACKNUMBER" "$mp3file" > > > Now I need to do this nasty workaround: > > eval `metaflac --export-vc-to - "$flacfile" | sed s'/=/="/' | sed > 's/$/"/'` > > -- System Information: > Debian Release: 3.1 > APT prefers unstable > APT policy: (500, 'unstable') > Architecture: i386 (i686) > Kernel: Linux 2.4.27 > Locale: LANG=de_DE@euro, LC_CTYPE=de_DE@euro (ignored: LC_ALL set to > C) > > Versions of packages flac depends on: > ii libc6 2.3.2.ds1-17 GNU C Library: Shared > libraries an > ii libflac4 1.1.0-11 Free Lossless Audio > Codec - runtim > ii libogg0 1.1.0-1 Ogg Bitstream Library > ii liboggflac1 1.1.0-11 Free Lossless Audio > Codec - runtim > > -- no debconf information > > > -- > To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@lists.debian.org > with a subject of "unsubscribe". Trouble? Contact > listmaster@lists.debian.org > > ----- End forwarded message ----- > > -- > - mdz > _______________________________________________ > Flac-dev mailing list > Flac-dev@xiph.org > http://lists.xiph.org/mailman/listinfo/flac-dev >_______________________________ Do you Yahoo!? Declare Yourself - Register online to vote today! http://vote.yahoo.com
Seemingly Similar Threads
- [Flac-users] FLAC 1.0.4 problems
- [Flac-users] error: FLAC required!
- [bodrato@gulp.linux.it: Bug#174609: flac: option "-E, --escape-coding" in man page, but not accepted]
- test_metaflac fails in make check for flac 1.1.2 after --add-padding is performed
- PATCH: Add test for metaflac --add-replay-gain