Debian Bug report logs - #324386
aview: asciiview handles -*width and -*height improperly

version graph

Package: aview; Maintainer for aview is Debian PhotoTools Maintainers <[email protected]>; Source for aview is src:aview (PTS, buildd, popcon).

Reported by: Lauri Harhanen <[email protected]>

Date: Sun, 21 Aug 2005 21:18:18 UTC

Severity: normal

Found in version aview/1.3.0rc1-6

Reply or subscribe to this bug.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to [email protected], Uwe Hermann <[email protected]>:
Bug#324386; Package aview. (full text, mbox, link).


Acknowledgement sent to Lauri Harhanen <[email protected]>:
New Bug report received and forwarded. Copy sent to Uwe Hermann <[email protected]>. (full text, mbox, link).


Message #5 received at [email protected] (full text, mbox, reply):

From: Lauri Harhanen <[email protected]>
To: [email protected]
Subject: aview: asciiview handles -*width and -*height improperly
Date: Mon, 22 Aug 2005 00:21:19 +0300
[Message part 1 (text/plain, inline)]
Package: aview
Version: 1.3.0rc1-6
Severity: normal

When I invoke asciiview with -width 100 it treats 100 as a filename. The
same happens with other width- and height-related options, too.

$ asciiview -width 100 myfile.pgm
Missing filename.
 Use --help for list of options.
The file '100' could not be opened.
/usr/bin/asciiview: line 4:  9341 Terminated
myconvert "$name" >/tmp/aview$$.pgm
$

Asciiview tries to detect all width-related options with "-*width" in
a case statement, but quotation marks prevent bash from expanding * as
it is supposed to do, I believe. I changed my asciiview to check
explicitely for all options that have two parts. (A .diff attached.) It
seems to work fine now.

This bug should also be in aview 1.3.0rc1-7, as its asciiview is the
same as in 1.3.0rc1-6.

-Lauri

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (900, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.11-1-k7
Locale: LANG=en_US.ISO-8859-15, LC_CTYPE=en_US.ISO-8859-15
(charmap=ISO-8859-15)
Versions of packages aview depends on:
ii  aalib1                   1.4p5-22        ascii art library
ii  libc6                    2.3.2.ds1-22    GNU C Library: Shared
libraries an
ii  libncurses5              5.4-9           Shared libraries for
terminal hand
ii  libx11-6                 4.3.0.dfsg.1-14 X Window System protocol
client li
ii  slang1                   1.4.9dbs-8      The S-Lang programming
library - r
ii  xlibs                    4.3.0.dfsg.1-14 X Keyboard Extension (XKB)
configu

aview recommends no packages.

-- no debconf information

[asciiview.diff (text/x-patch, inline)]
39c39
<     "-font" | "-driver" | "-kbddriver" | "-mousedriver" | "-*width" | "-*height" | "-bright" | "-contrast" | "-gamma" | "-random" | "-dimmul" | "-boldmul")
---
>     "-font" | "-driver" | "-kbddriver" | "-mousedriver" | "-width" | "-height" | "-minwidth" | "-minheight" | "-maxwidth" | "-maxheight" | "-recwidth" | "-recheight" | "-bright" | "-contrast" | "-gamma" | "-random" | "-dimmul" | "-boldmul")

Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Thu May 15 16:22:18 2025; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.