ports/165354: shell - incorrect pipeline processing
jb
jb.1234abcd at gmail.com
Tue Feb 21 09:40:12 UTC 2012
>Number: 165354
>Category: ports
>Synopsis: shell - incorrect pipeline processing
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Tue Feb 21 09:40:11 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: jb
>Release: 9.0-RELEASE #0
>Organization:
>Environment:
FreeBSD localhost.localdomain 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan 3 07:15:25 UTC 2012 root at obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
>Description:
Example:
Why the other ps entry does not display cron ?
$ top
..
PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND
1897 root 1 20 0 9644K 1208K nanslp 0 0:03 0.00% cron
..
$ ps -ax |grep cron
1897 ?? Is 0:03.16 /usr/sbin/cron -s
62278 1 S+ 0:00.01 grep cron
$ ps -aux |grep cron
$
man ps
-x When displaying processes matched by other options, include pro-
cesses which do not have a controlling terminal.
That happens because the cron command is truncated.
The same entry and its output on randomly larger (column-wise) terminal:
$ ps -aux |grep cron
root 1897 0.0 0.1 9644 1208 ?? Is Thu12PM 0:05.45 /usr/sbin/cron -s
jb 32411 0.0 0.1 9748 1124 2 S+ 10:19AM 0:00.00 grep cron
I think the current application of terminal window size is incorrect.
$ env |grep -i shell
SHELL=/usr/local/bin/bash
$ pkg_info -W bash
/usr/local/bin/bash was installed by package bash-4.1.11
Shell pipeline:
command1 | command2
Right now it is:
command1 -> fd (stdout) -> win size "filter" -> | -> command2 -> display
It should be:
command1 -> fd (stdout) -> | -> command2 -> fd (stdout) -> win size "filter" -> display
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list