From: Martin Quinson Date: Sun, 27 Sep 2015 16:54:02 +0000 (+0200) Subject: [tesh] kill dead code X-Git-Tag: v3_12~113 X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/6e4bd9a91135472a7cae2d91e8a13ee867625b84?hp=9dc613bb976d732f4eb61dd191627bc0edb2368c [tesh] kill dead code This feature is not working, but it's not documented (nor used) either --- diff --git a/tools/tesh/tesh.pl b/tools/tesh/tesh.pl index 5cb808fb9a..ed1902ca56 100755 --- a/tools/tesh/tesh.pl +++ b/tools/tesh/tesh.pl @@ -43,7 +43,6 @@ push @INC, $path; use Getopt::Long qw(GetOptions); use strict; -use Term::ANSIColor; use Text::ParseWords; use IPC::Open3; use IO::File; @@ -528,7 +527,7 @@ LINE: while ( defined( my $line = <$infh> ) and not $error ) { $cmd{'file'} = $tesh_file; $cmd{'line'} = $line_num; } - } elsif ( $cmd eq '&' ) { # parallel command line + } elsif ( $cmd eq '&' ) { # background command line if ( defined( $cmd{'cmd'} ) ) { exec_cmd( \%cmd ); @@ -538,6 +537,7 @@ LINE: while ( defined( my $line = <$infh> ) and not $error ) { $cmd{'cmd'} = $arg; $cmd{'file'} = $tesh_file; $cmd{'line'} = $line_num; + } elsif ( $line =~ /^!\s*output sort/ ) { #output sort if ( defined( $cmd{'cmd'} ) ) { exec_cmd( \%cmd ); @@ -582,14 +582,6 @@ LINE: while ( defined( my $line = <$infh> ) and not $error ) { $line =~ s/^! setenv //g; $line =~ s/\r//g; setenv_cmd($line); - } elsif ( $line =~ /^!\s*include/ ) { #include - if ( defined( $cmd{'cmd'} ) ) { - exec_cmd( \%cmd ); - %cmd = (); - } - print color("red"), "[Tesh/CRITICAL] need include"; - print color("reset"), "\n"; - die; } elsif ( $line =~ /^!\s*timeout/ ) { #timeout if ( defined( $cmd{'cmd'} ) ) { exec_cmd( \%cmd );