In <[EMAIL PROTECTED]>, Patrick Tracanelli <[EMAIL PROTECTED]> typed:
> Kris Kennaway wrote:
> > On Thu, Apr 13, 2006 at 02:48:51AM +0200, Stefan Sperling wrote:
> >>On Wed, Apr 12, 2006 at 07:22:27PM -0400, Kris Kennaway wrote:
> >>>On Wed, Apr 12, 2006 at 10:48:44PM +0000, [EMAIL PROTECTED] wrote:
> >>>>  I tried out  FreeBSD 6.0  (sorry, I copied just part or
> >>>> uname -a  and I got something like "LINUX  2.4.2 FreeBSD 6.0 -
> >>>>Release #0: Nov 3 09:36:13 UTC 2005  i686 i686 i386 GNU/LINUX")
> >>>
> >>>No you didn't, since no version of FreeBSD reports itself as LINUX
> >>>from uname.
> >>Unless uname is a Linux binary.
> > FreeBSD doesn't ship uname as a Linux binary either :-)
> Unless under Linux mode...

Which would also explains the rest of the behavior the OP saw. He's
getting bash instead of sh - because /bin/sh on Linux is bash. The two
really odd behaviors - a list of files and a question about the number
of possibilities - is bash file completion, which is triggered by the
tab character.

As for echo having standardized behavior, that's simply wishful
thinking.  SysV and BSD echo commands have different behaviors. POSIX
is SysV. Various shells builtin echos have have flags and/or shell
variables to control whether you get a variant of the SysV or BSD
behavior, and different defaults.

To get the behavior you want with the bash builtin echo, use:
        echo -e "a\tb"
Better yet, consider using the printf command instead of echo.

        <mike
-- 
Mike Meyer <[EMAIL PROTECTED]>          http://www.mired.org/consulting.html
Independent Network/Unix/Perforce consultant, email for more information.
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to