🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.utils.bug
Article #1613

`make' handles `-l 2.0' incorrectly.

#1613
From: Derek Clegg
Date: Thu, 18 May 1989 18:22
38 lines
1385 bytes
Version:
    Make version 3.48

Problem:
    `make' handles floating point arguments following a flag with an
    intervening space (such as `-l 2.0') incorrectly.

Fix:
    Apply the following patch:

*** make-3.48/make.c	Tue May 16 10:16:11 1989
--- make/make.c	Tue May 16 10:25:59 1989
***************
*** 891,900 ****
		    case floating:
		      if (*sw == '\0')
			arg = argv[++i];
		      else
			arg = sw;
  		      if (arg != 0 && (*arg == '.' || isdigit (*arg)))
  			{
! 			  *(double *) cs->value_ptr = atof (sw);
  			  while (*arg == '.' || isdigit (*arg))
  			    ++arg;
--- 895,904 ----
		    case floating:
		      if (*sw == '\0')
			arg = argv[++i];
		      else
			arg = sw;
  		      if (arg != 0 && (*arg == '.' || isdigit (*arg)))
  			{
! 			  *(double *) cs->value_ptr = atof (arg);
  			  while (*arg == '.' || isdigit (*arg))
  			    ++arg;

Notes:
    I am using a Sun 3/60 with UNIX 4.2 (Sun release 4.0.1).
Technical Details
Message-ID: <8905181822.AA08732@M4.island.uucp>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!UUNET.UU.NET!island!M4!derek

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!UUNET.UU.NET!island!M4!derek
From: island!M4!derek@UUNET.UU.NET (Derek Clegg)
Newsgroups: gnu.utils.bug
Subject: `make' handles `-l 2.0' incorrectly.
Message-ID: <8905181822.AA08732@M4.island.uucp>
Date: 18 May 89 18:22:15 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 38