bin/124057: [/bin/sh] standard error redirection problem

Hiroshi Fujishima hirobo at tonteki.org
Wed May 28 04:00:11 UTC 2008


>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 at 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:


More information about the freebsd-bugs mailing list