** Changed in: mawk (Debian)
       Status: Unknown => New

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to mawk in Ubuntu.
https://bugs.launchpad.net/bugs/490736

Title:
  mawk 1.3.3-17ubuntu2 incorrectly handles "/" in "[ ]" expressions

Status in mawk package in Ubuntu:
  Confirmed
Status in mawk package in Debian:
  New

Bug description:
  Binary package hint: mawk

  Description:  Ubuntu 9.04
  Release:      9.04

  Package version:   mawk 1.3.3-13ubuntu1

  
  Whilst attempting to run a shell script to automate the build procedure for 
an embedded platform I came across a parsing error in the mawk installation on 
my Ubuntu 9.04 box.  I followed this up with the script author, and then the 
mawk maintainer, and determined that:

    (a).  The behavior of mawk 1.3.3-13ubuntu1 is incorrect
    (b).  The incorrect behavior exhibited by mawk 1.3.3-13ubuntu1 is not 
exhibited by the upstream sources mawk-1.3.3-20090920 when built on my Ubuntu 
box

  The error case can be demonstrated using this script fragment:

  
  for interpretter in gawk mawk;
  do
  echo "Running with $interpretter..."
  echo
  echo "diecimila.name=Arduino Diecimila, Duemilanove, or Nano w/ATmega168" | \
  $interpretter -v FS== '{boardname=$2; gsub(/[^a-zA-Z0-9_,./():-]/, "", 
boardname); print boardname }'
  echo
  done

  
  When run using my system's mawk installation I get the following output:

  
  Running with gawk...

  ArduinoDiecimila,Duemilanove,orNanow/ATmega168

  Running with mawk...

  mawk: line 1: regular expression compile failed (bad class -- [], [^] or [)
  [^a-zA-Z0-9_,.
  mawk: line 1: syntax error at or near )
  bash: echo: write error: Broken pipe

  
  When run using the upstream mawk I get the following output:

  
  Running with gawk...

  ArduinoDiecimila,Duemilanove,orNanow/ATmega168

  Running with ./mawk...

  ArduinoDiecimila,Duemilanove,orNanow/ATmega168

  
  For reference, I built the upstream mawk package as follows:

  ./compile && make

  That is, I used whatever defaults the autoconf script picked for my
  system.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mawk/+bug/490736/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to