From 5832fe44203ccf0cc00134fa9c2e7834260d1861 Mon Sep 17 00:00:00 2001 From: LAN-TW Date: Wed, 15 Feb 2012 23:49:16 +0800 Subject: =?UTF-8?q?bash=5Finclude:=20=E8=83=8C=E6=99=AF=E5=9F=B7=E8=A1=8C?= =?UTF-8?q?=E6=B8=85=E5=96=AE=E6=A8=99=E9=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bash_include | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'bash_include') diff --git a/bash_include b/bash_include index ebf0c15..45ea26b 100644 --- a/bash_include +++ b/bash_include @@ -174,12 +174,6 @@ function bglist () { local viewtime=0 [ "$1" = "--full" ] && viewtime=1 - if [ "$viewtime" = "1" ] - then - echo " INDEX TIME PID COMMAND" - else - echo " INDEX PID COMMAND" - fi { for i in `find "$bgrunfiledir" -maxdepth 1 -mindepth 1 | sort` do @@ -195,6 +189,7 @@ function bglist () } | { if [ "$viewtime" = "1" ] then + echo " INDEX TIME PID COMMAND" local readstat=0 local -i i=1 while true @@ -225,6 +220,7 @@ function bglist () i=$i+1 done else + echo " INDEX PID COMMAND" cat -n fi } | $PAGER -- cgit v1.2.3