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: Soren Jacobsen <snj%blef.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: Wed, 22 Jun 2016 16:50:54 -0700

 On 05/30 17:15, David Holland wrote:
 > The following reply was made to PR standards/50647; it has been noted by GNATS.
 > 
 > From: David Holland <dholland-bugs%netbsd.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: Mon, 30 May 2016 17:13:51 +0000
 > 
 >  On Mon, Jan 11, 2016 at 03:30:00PM +0000, imil%home.imil.net@localhost wrote:
 >   > rc.subr uses `echo -n` in various functions, this makes the script
 >   > not portable under operating systems not supporting echo "-n" flag.
 >  
 >  MacOS doesn't support echo -n? What is this, 1992?
 
 2007, more like it.  OS X ships a crusty version of bash (3.2.57) as
 their /bin/sh, presumably because it's the last GPLv2 release.  Blech.
 Anyway, bash 3.2.57 only supports echo -n when invoked as bash, not as
 sh.  Double blech.
 
 Soren
 


Home | Main Index | Thread Index | Old Index