bug-dejagnu
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-dejagnu] Typo in proc file_on_host


From: Nick Clifton
Subject: [Bug-dejagnu] Typo in proc file_on_host
Date: 02 Oct 2001 11:30:23 +0100

Hi Guys,

  I think that there is a typo in the definition of proc file_on_host:
  When remote_file is invoked the file parameter is prefixed by a
  an unprotected single quote mark and terminated with a protected
  double quote.  I believe, from inspection and experimentation that
  the prefix should be a protected double quote.

  I am submitting this patch for approval, rather than just applying 
  it, since I am not an expert on this code.  I have found however
  that without this patch applied a command like:

        file_on_host delete foo bar

  will only delete bar and will leave foo intact.

Cheers
        Nick

2001-10-02  Nick Clifton  <address@hidden>

        * lib/remote.exp (proc file_on_host): Fix typo in construction
        of file argument.

Index: lib/remote.exp
===================================================================
RCS file: /cvs/src/src/dejagnu/lib/remote.exp,v
retrieving revision 1.1.1.1
diff -p -r1.1.1.1 remote.exp
*** remote.exp  1999/11/09 01:28:42     1.1.1.1
--- remote.exp  2001/10/02 10:23:50
*************** proc standard_send { dest string } {
*** 581,587 ****
  }
  
  proc file_on_host { op file args } {
!     return [eval remote_file host \"$op\" '\$file\" $args];
  }
  
  proc file_on_build { op file args } {
--- 581,587 ----
  }
  
  proc file_on_host { op file args } {
!     return [eval remote_file host \"$op\" \"$file\" $args];
  }
  
  proc file_on_build { op file args } {




reply via email to

[Prev in Thread] Current Thread [Next in Thread]