Bug#393066: a2p: translated print must have \n

2006-10-15 Thread Brendan O'Dea
severity 393066 normal
close 393066
thanks

On Sat, Oct 14, 2006 at 09:01:32PM +0200, Bernd Warken wrote:
>The `print' command in `awk' adds automatically a `\n' at the end.  `a2p'
>translates it just in a Perl `print' without adding a `\n'.

awk print output is followed by the value of ORS (newline by default). 
perl print output is followed by the value of $\ , which a2p sets
initially to "\n".

  $ awk -F: '$3 == 0 { print $1 }' /etc/passwd 
  root
  $ echo '$3 == 0 { print $1 }' | a2p -F: | perl - /etc/passwd 
  root

The trivial example above works fine and a trailing newline is produced
in both cases.

a2p is not intended to produce a perfect machine-translation of awk code
to perl (please see the manual page under "Considerations").  You may
need to modify the output.

>Severity: grave
>Justification: renders package unusable

While a2p may not be behaving as you expect, this does not render the
perl package unusable.

--bod


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#393066: a2p: translated print must have \n

2006-10-14 Thread Bernd Warken
Subject: a2p: translated print must have \n
Package: perl
Version: 5.8.8-6.1
Severity: grave
Justification: renders package unusable

*** Please type your report below this line ***

The `print' command in `awk' adds automatically a `\n' at the end.  `a2p'
translates it just in a Perl `print' without adding a `\n'.

Bernd Warken

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17-2-k7
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)

Versions of packages perl depends on:
ii  libc62.3.6.ds1-4 GNU C Library: Shared libraries
ii  libdb4.4 4.4.20-8Berkeley v4.4 Database Libraries [
ii  libgdbm3 1.8.3-3 GNU dbm database routines (runtime
ii  perl-base5.8.8-6.1   The Pathologically Eclectic Rubbis
ii  perl-modules 5.8.8-6.1   Core Perl modules

Versions of packages perl recommends:
ii  perl-doc  5.8.8-6.1  Perl documentation

-- no debconf information

_
Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
http://smartsurfer.web.de/?mc=100071&distributionid=0066



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]