From 6e4bd9a91135472a7cae2d91e8a13ee867625b84 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Sun, 27 Sep 2015 18:54:02 +0200 Subject: [PATCH] =?utf8?q?[tesh]=C2=A0kill=20dead=20code?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This feature is not working, but it's not documented (nor used) either --- tools/tesh/tesh.pl | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) 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 ); -- 2.20.1