1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

split curl and libcurl into two strings in the initial display

This commit is contained in:
Daniel Stenberg 2001-04-26 08:32:12 +00:00
parent 583c2e2f09
commit a7dc45997f

View File

@ -372,11 +372,19 @@ sub displaydata {
unlink($memdump); # remove this if there was one left
my $version=`$CURL -V`;
chomp $version;
my $curl = $version;
$curl =~ s/^(.*)(libcurl.*)/$1/g;
my $libcurl = $2;
my $hostname=`hostname`;
my $hosttype=`uname -a`;
print "********* System characteristics ******** \n",
"* $version",
"* $curl\n",
"* $libcurl\n",
"* Host: $hostname",
"* System: $hosttype";