Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 May 2008 03:57:33 GMT
From:      Hiroshi Fujishima <hirobo@tonteki.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   bin/124057: [/bin/sh] standard error redirection problem
Message-ID:  <200805280357.m4S3vXYI087767@www.freebsd.org>
Resent-Message-ID: <200805280400.m4S40BMn091580@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         124057
>Category:       bin
>Synopsis:       [/bin/sh] standard error redirection problem
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed May 28 04:00:10 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Hiroshi Fujishima
>Release:        7.0-RELEASE
>Organization:
>Environment:
FreeBSD sea.sakura.ad.jp 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008     root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
command not found error can't redirect.

% sh -c 'command-not-found 2> /dev/null'
command-not-found: not found
% bash -c 'command-not-found 2> /dev/null'
% zsh -c 'command-not-found 2> /dev/null'

work around:

% sh -c '( command-not-found ) 2> /dev/null'

>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200805280357.m4S3vXYI087767>