[Fink-devel] Leopard and echo -n breakage

2007-10-27 Thread Martin Costabel
I thought Apple had promised not to break echo -n in Leopard?
They did it anyway. Not in /bin/echo, but in /usr/bin/make and in /bin/sh.

Make uses its own built-in echo (or perhaps the one built into /bin/sh), 
and the one in Leopard doesn't understand -n. Packages that still have 
echo -n in their Makefiles will break. The xetex package is an example.

The same behavior can be seen in /bin/sh scripts where the built-in echo 
is used. Try `sh -c echo -n asdf`.

-- 
Martin


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.devel


Re: [Fink-devel] Leopard and echo -n breakage

2007-10-27 Thread Matthew Sachs
On Oct 27, 2007, at 15:27, Martin Costabel wrote:

 I thought Apple had promised not to break echo -n in Leopard?
 They did it anyway. Not in /bin/echo, but in /usr/bin/make and in / 
 bin/sh.
 ...
 The same behavior can be seen in /bin/sh scripts where the built-in  
 echo
 is used. Try `sh -c echo -n asdf`.

When you start the shell as 'sh' instead of 'bash', it uses POSIX  
compliance mode.  Try `bash -c echo -n asdf`.  Shell scripts may  
need to change their #! line.


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.devel


Re: [Fink-devel] Leopard and echo -n breakage

2007-10-27 Thread Martin Costabel
Matthew Sachs wrote:
 On Oct 27, 2007, at 15:27, Martin Costabel wrote:
 
 I thought Apple had promised not to break echo -n in Leopard?
 They did it anyway. Not in /bin/echo, but in /usr/bin/make and in 
 /bin/sh.
 ...
 The same behavior can be seen in /bin/sh scripts where the built-in echo
 is used. Try `sh -c echo -n asdf`.
 
 When you start the shell as 'sh' instead of 'bash', it uses POSIX 
 compliance mode.  

Or what whoever decided this thinks is POSIX compliance mode. I thought 
it was established long ago that POSIX does *not* define what echo -n is 
supposed to do. As it says in Apple's very own man echo under -n:

  Note that this option as well as the effect of `\c' are
  implementation-defined in IEEE Std 1003.1-2001 (``POSIX.1'')
  as amended by Cor. 1-2002.

 Try `bash -c echo -n asdf`.  Shell scripts may need 
 to change their #! line.

Or eliminate echo -n. Gratuitous additional porting hassle, in any case.

-- 
Martin






-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.devel