From: Stefan Knoblich Date: Thu, 27 Nov 2008 21:40:29 +0000 (+0000) Subject: Fixup output of fsxs --variable X-Git-Tag: v1.0.2~383 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8719823f5d09e4abae1cc23874b8fa416a92ae7d;p=thirdparty%2Ffreeswitch.git Fixup output of fsxs --variable git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10558 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/scripts/fsxs.in b/scripts/fsxs.in index dbf9526585..73ba2d9870 100755 --- a/scripts/fsxs.in +++ b/scripts/fsxs.in @@ -177,12 +177,14 @@ sub fsxs_show { sub fsxs_showq { my @varlist = @_; + my $count = 0; if( $#varlist >= 0 ) { foreach( @varlist ) { if( defined $vars{$_} ) { - print "$vars{$_} "; + print "$vars{$_}" . (($count < $#varlist) ? " " : ""); } + $count++; } } }