bug-m4
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

$# handles zero arguments incorrectly.


From: R. Clayton
Subject: $# handles zero arguments incorrectly.
Date: Sat, 12 Jan 2008 14:08:21 -0500 (EST)

  $ m4 --version
  m4 (GNU M4) 1.4.10
  Copyright (C) 2007 Free Software Foundation, Inc.
  License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
  This is free software: you are free to change and redistribute it.
  There is NO WARRANTY, to the extent permitted by law.

  Written by Rene' Seindal.

  $ cat bad
  define(`nargs', `$#')
  nargs()
  nargs(1)
  nargs(1, 2)

  $ m4 < bad

  1
  1
  2

  $ 

This is on a debian testing system updated weekly.

  $ uname -a
  Linux UlanBator 2.6.22-2-686 #1 SMP Fri Aug 31 00:24:01 UTC 2007 i686 
GNU/Linux

  $





reply via email to

[Prev in Thread] Current Thread [Next in Thread]