Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[tesh] kill some more unused variables
authorMartin Quinson <martin.quinson@loria.fr>
Fri, 25 Sep 2015 07:09:44 +0000 (09:09 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Fri, 25 Sep 2015 12:58:58 +0000 (14:58 +0200)
And use English for some other variables

tools/tesh/tesh.pl

index 39a92e1..b0184cc 100755 (executable)
@@ -19,8 +19,6 @@ tesh -- testing shell
 B<tesh> [I<options>] I<tesh_file>
 
 =cut
-my($bindir)=".";
-my($srcdir)=".";
 my($timeout)=0;
 my($time_to_wait)=0;
 my $path = $0;
@@ -51,7 +49,7 @@ use English;
 ## Portability bits for windows
 ##
 
-use constant RUNNING_ON_WINDOWS => ($^O =~ /^(?:mswin|dos|os2)/oi);
+use constant RUNNING_ON_WINDOWS => ($OSNAME =~ /^(?:mswin|dos|os2)/oi);
 use POSIX qw(:sys_wait_h WIFEXITED WIFSIGNALED WIFSTOPPED WEXITSTATUS WTERMSIG WSTOPSIG
              :signal_h SIGINT SIGTERM SIGKILL SIGABRT SIGSEGV);
 # These are not implemented on windows