Date: Tue, 21 Feb 2012 09:36:21 GMT From: jb <jb.1234abcd@gmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/165354: shell - incorrect pipeline processing Message-ID: <201202210936.q1L9aLLp043824@red.freebsd.org> Resent-Message-ID: <201202210940.q1L9eBuY065797@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201202210936.q1L9aLLp043824>