From 2775ac4aed8c8511efc39de9eecafb79074aae4f Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Mon, 28 Jan 2013 22:49:20 +0000 Subject: [PATCH] branch one tests --- inxi | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/inxi b/inxi index e4a087a..ca57909 100755 --- a/inxi +++ b/inxi @@ -3,7 +3,7 @@ #### Script Name: inxi #### version: 1.8.32 #### Date: January 23 2013 -#### Patch Number: 01-one +#### Patch Number: 02-one ######################################################################## #### SPECIAL THANKS ######################################################################## @@ -2417,6 +2417,11 @@ get_start_client() if [[ $B_RUNNING_IN_SHELL == 'true' ]];then IRC_CLIENT='Shell' + if [[ $B_EXTRA_DATA == 'true' ]];then + ps_l=$(ps -l | gawk '($5 == '"$PPID"') {print $NF}') + IRC_CLIENT="$IRC_CLIENT ($ps_l)" + fi + echo $PPID unset IRC_CLIENT_VERSION elif [[ -n $PPID && -f /proc/$PPID/exe ]];then if [[ $B_OVERRIDE_FILTER != 'true' ]];then @@ -2717,7 +2722,7 @@ get_start_client() else # this should handle certain cases where it's ssh or some other startup tool # that falls through all the other tests - ps_l=$(ps -l | gawk '($5 == '$PPID') {print $NF}' ) + ps_l=$(ps -p $PPID --no-headers | gawk '{print $NF}' ) if [[ -n $ps_l ]];then IRC_CLIENT=$ps_l else