(Change Version Number)

Bug fix, major, had to add back in wildcard on perl detection and handling because it can report as not just 
perl but as perl5.10.0, a single string
This commit is contained in:
inxi-svn 2008-11-10 20:03:33 +00:00
parent 5e72775218
commit fc8221b72f

7
inxi
View file

@ -1,7 +1,7 @@
#!/bin/bash
########################################################################
#### Script Name: inxi
#### version: 0.4.27
#### version: 0.4.28
#### Date: November 10 2008
########################################################################
#### inxi is a fork of infobash, the original bash sys info script by locsmif
@ -616,8 +616,9 @@ get_start_client()
# handles the xchat/sh/bash/dash cases, and the konversation/perl cases, where clients
# report themselves as perl or unknown shell. IE: when konversation starts inxi
# from inside itself, as a script, the parent is konversation/xchat, not perl/bash etc
# note: perl can report as: perl5.10.0, so it needs wildcard handling
case $app_working_name in
bash|dash|sh|perl) # We want to know who wrapped it into the shell or perl.
bash|dash|sh|perl*) # We want to know who wrapped it into the shell or perl.
pppid="$( ps -p $PPID -o ppid --no-headers | sed 's/ //g' )"
if [[ -n $pppid && -f /proc/$pppid/exe ]];then
irc_client_path="$( readlink /proc/$pppid/exe )"
@ -742,7 +743,7 @@ get_start_client()
}' )"
IRC_CLIENT="Kopete"
;;
perl|ksirc|dsirc)
perl*|ksirc|dsirc)
unset IRC_CLIENT_VERSION
# KSirc is one of the possibilities now. KSirc is a wrapper around dsirc, a perl client
get_cmdline $PPID