Your message dated Tue, 17 Jun 2008 10:02:04 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#440759: fixed in apcalc 2.12.3.3-1
has caused the Debian Bug report #440759,
regarding apcalc: 'calc' has trouble in shell script 'while read' loops.
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [EMAIL PROTECTED]
immediately.)


-- 
440759: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=440759
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Package: apcalc
Version: 2.12.1.13-3
Severity: normal

What works, and what fails:

    # add 2 to index with 'for' loop (this works)
    % for f in `seq 3` ; do calc $f + 2 ; done 
            3
            4
            5

    # same code, but with a 'while read' loop (it fails)
    % seq 3 | while read f ; do calc $f + 2 ; done 
            3
            2
            3

'calc' behaves correctly at first, (it prints 3), then outputs the
index '$f' without adding 2.  Most utils aren't confused by 'while
read':

    % seq 3 | while read f ; do expr $f + 2 ; done 
    3
    4
    5

I'd guess that a variable input with 'read' is subtly different,
(how?), and that 'calc' parses the command line in an unusual way.  If
that's not a bug, then it should be documented in 'man calc'.  (It makes
it hard to pump in a big list of numbers to 'calc'.)

Hope this helps...


-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.21-1-686 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)
Shell: /bin/sh linked to /bin/dash

Versions of packages apcalc depends on:
ii  apcalc-common             2.12.1.13-3    Arbitrary precision calculator (co
ii  libc6                     2.6.1-1+b1     GNU C Library: Shared libraries
ii  libncurses5               5.6+20070825-1 Shared libraries for terminal hand
ii  libreadline5              5.2-3          GNU readline and history libraries

apcalc recommends no packages.

-- no debconf information


--- End Message ---
--- Begin Message ---
Source: apcalc
Source-Version: 2.12.3.3-1

We believe that the bug you reported is fixed in the latest version of
apcalc, which is due to be installed in the Debian FTP archive:

apcalc-common_2.12.3.3-1_all.deb
  to pool/main/a/apcalc/apcalc-common_2.12.3.3-1_all.deb
apcalc-dev_2.12.3.3-1_i386.deb
  to pool/main/a/apcalc/apcalc-dev_2.12.3.3-1_i386.deb
apcalc_2.12.3.3-1.diff.gz
  to pool/main/a/apcalc/apcalc_2.12.3.3-1.diff.gz
apcalc_2.12.3.3-1.dsc
  to pool/main/a/apcalc/apcalc_2.12.3.3-1.dsc
apcalc_2.12.3.3-1_i386.deb
  to pool/main/a/apcalc/apcalc_2.12.3.3-1_i386.deb
apcalc_2.12.3.3.orig.tar.gz
  to pool/main/a/apcalc/apcalc_2.12.3.3.orig.tar.gz



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Martin Buck <[EMAIL PROTECTED]> (supplier of updated apcalc package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])


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

Format: 1.8
Date: Mon, 16 Jun 2008 07:28:38 +0200
Source: apcalc
Binary: apcalc apcalc-common apcalc-dev
Architecture: source all i386
Version: 2.12.3.3-1
Distribution: unstable
Urgency: low
Maintainer: Martin Buck <[EMAIL PROTECTED]>
Changed-By: Martin Buck <[EMAIL PROTECTED]>
Description: 
 apcalc     - Arbitrary precision calculator (original name: calc)
 apcalc-common - Arbitrary precision calculator (common files)
 apcalc-dev - Library for arbitrary precision arithmetic
Closes: 440759
Changes: 
 apcalc (2.12.3.3-1) unstable; urgency=low
 .
   * New upstream release. Closes: #440759 (see "help unexpected")
   * Upstream switched from releasing .gz to .bz2:
     - Updated debian/watch to search for .bz2
     - Added get-orig-source target to debian/rules to download and convert
       source to .gz
     - Added note to copyright file as required by Developer's Reference
   * Upgraded to Standards-Version 3.8.0.0
     - Use menu section Applications/Science/Mathematics
     - Moved homepage URL from description to its field in debian/control
   * Updated menu file to also depend on apcalc-common to make lintian
     happy
   * Added lintian-overrides for non-bugs
   * Don't link against libhistory and libncurses - libhistory isn't used
     at all and libncurses is only required when linking statically,
     which we don't
   * Removed useless dh_makeshlibs call
   * Added groff-base to Build-Depends
Checksums-Sha1: 
 ee1aa49ba3ada4225d8dfa7ad9f7a15c1b1e922c 1116 apcalc_2.12.3.3-1.dsc
 90ac4ca8562f5eb2102cc0d83b32891e0b0e4017 1076659 apcalc_2.12.3.3.orig.tar.gz
 b1d429f206669ae4925a187fd5a8399a398c98b9 8643 apcalc_2.12.3.3-1.diff.gz
 94a2f0550eb4001180a8ef7a9113c6514243a7b1 936938 
apcalc-common_2.12.3.3-1_all.deb
 b3088585ce44cb584b6baff10ce8584d2073fd76 304768 apcalc_2.12.3.3-1_i386.deb
 2e2684f251ea8706fd4f8d72d5ac893d8733a25b 548366 apcalc-dev_2.12.3.3-1_i386.deb
Checksums-Sha256: 
 d721d0fbd770bd7d1b29dfac949bbc218a11feab01610acde18f694a4516c731 1116 
apcalc_2.12.3.3-1.dsc
 c133462a6bd2b411af19b6fe2b3eca469b4884919d899e7b2a7d92b0ffd9603e 1076659 
apcalc_2.12.3.3.orig.tar.gz
 7dc5e1c7cb4b9a439df961d6aa6c060e72488fa58c4ef0f8d2f27893c4606d1d 8643 
apcalc_2.12.3.3-1.diff.gz
 1fdc545172d14f71baa99df37f2a691eff21d45dec76bb0d4e5e928f6569848e 936938 
apcalc-common_2.12.3.3-1_all.deb
 cc19c8d8a5b8516d3e09ffb0b9efabdc7368aa9b8142e89e1882883d7f745768 304768 
apcalc_2.12.3.3-1_i386.deb
 e8a5281be57bbb26f9f2ae7561a952c89ce52dd088b57f1e8849246e4a9cfd68 548366 
apcalc-dev_2.12.3.3-1_i386.deb
Files: 
 e505b75bf770f559bbd58f6c27bd25c5 1116 math optional apcalc_2.12.3.3-1.dsc
 8f65a97454b31647e0ce07153c1a147b 1076659 math optional 
apcalc_2.12.3.3.orig.tar.gz
 065458008213329d0599ca9b14fa6699 8643 math optional apcalc_2.12.3.3-1.diff.gz
 ec4e6d364f9b9c44d1d8dc302108778a 936938 math optional 
apcalc-common_2.12.3.3-1_all.deb
 1855225ab98078331191663540130f0a 304768 math optional 
apcalc_2.12.3.3-1_i386.deb
 af891a5915adc4f4909092052f77704b 548366 devel optional 
apcalc-dev_2.12.3.3-1_i386.deb

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

iD8DBQFIV3UN5na4Z/jVQlkRAmoVAJ9Yftg6gnilDzjf9QCVTsFPsi7uMwCfXiqT
qMKfG7vFiooL61ubgtk6S58=
=EIwR
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to