On Tue, 16 Jul 2002 08:05:53 GMT
Abc Xyz <[EMAIL PROTECTED]> wrote:

> i just installed 4.6-RELEASE, and notice that
> the '2>&-' sh (FBSD) construct seems to be broken.
> i am going thru all my scripts having to change
> it to /dev/null ...
> 
> i figure it's not realistic to assume a bug this
> obvious would make it to release stage, so my
> question is - is something else going on?
> or is this just due to changes in 'sh'?
> is it a bug?  or is it a permenent change?

You probably come from a Linux background, where /bin/sh is generally
symlinked to /bin/bash.

On FreeBSD, /bin/sh is the historical UNIX shell, the Bourne Shell.
The '&>' (aka '>&') construct is a bashism, and won't work using
/bin/sh.

The /bin/sh equivalent of bash's 'cat foo &>file' is 'cat foo >file
2>&1'.

Regards,
Jean-Yves Lefort

-- 
Jean-Yves Lefort

[EMAIL PROTECTED]
http://void.adminz.be/

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message

Reply via email to