× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hi, Scott:

This logic doesn't work on my FreeBSD machines either:

(grungy) DING! ~ > echo abc | sed 's/a/a\r\n/'
arnbc

Same result as QShell and PASE. Are you sure it's supposed to work?!

It's supposed to work, for gnu. I think FreeBSD doesn't use gnu utilities
by default.

This extract from http://lwn.net/Articles/125779/ seems to confirm:

This is because most Linux distributions use GNU utilities, while BSD
operating systems have developed their own shell utilities with arguments
and switches that often differ from the GNU ones. A good case in point is
"sed", which is part of the FreeBSD userland and which sometimes behaves
differently from GNU sed. That said, GNU sed is available in FreeBSD as a
port called "gsed", so something like 's/sed/gsed/g' might come handy to
convert scripts between the two systems. Other shell scripts might need
manual update - even commands like "date" or "stat" behave differently under
the two operating systems.

Dennis Lovelady
http://www.linkedin.com/in/dennislovelady
--
"As lousy as things are now, tomorrow they will be somebody's good old
days."
-- Gerald Barzan




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.