NetBSD-Bugs archive

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

Re: standards/50647 ("echo -n" in rc.subr breaks the stop command on OSX)



The following reply was made to PR standards/50647; it has been noted by GNATS.

From: Robert Elz <kre%munnari.OZ.AU@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: standards/50647 ("echo -n" in rc.subr breaks the stop command on OSX)
Date: Sun, 21 Oct 2018 22:55:17 +0700

     Date:        Sun, 21 Oct 2018 13:00:01 +0000 (UTC)
     From:        coypu%sdf.org@localhost
     Message-ID:  <20181021130001.94C477A237%mollari.NetBSD.org@localhost>
 
   | From: coypu%sdf.org@localhost
   | To: gnats-bugs%netbsd.org@localhost
   | Cc: 
   | Subject: Re: standards/50647 ("echo -n" in rc.subr breaks the stop command on
   |  OSX)
   | Date: Sun, 21 Oct 2018 12:57:30 +0000
   |
   |  For pkgsrc rc.subr:
 
 pkgsrc rc.subr should probably be updated to be the same as the base
 system rc.subr which no longer (normally) uses echo at all, but iuses
 printf (which is much more standard and predictable, at least with standard
 usages).
 
 That is echo has been a function in rc.subr for ages, but it then used the
 built in echo, for a while now now it uses printf instead.   This causes all
 normal invocations of echo in rc and rc.d/* to actually use printf.   The
 function handles echo with or without -n.
 
 kre
 


Home | Main Index | Thread Index | Old Index