Pete Forman writes:
 > We should not be looking at return codes to assess test's
 > abilities.
 > 
 > How about something like
 > 
 >     test / -nt / 2>&1
 > 
 > That will be an empty string for success (supports -nt).  Resist
 > the temptation to wrap it in `` as that will assess a sub-shell.
 > This should work:
 > 
 >     (rcp-send-command ... "test / -nt / 2>&1; echo X")
 > 
 >     ... (string-match "^X$" ...) ; => success

Sorry about following up my own post but I seem to be duplicating what
rcp-wait-for-output is doing.  This should suffice:

    (rcp-send-command ... "test / -nt / 2>&1")

    ... (string-match "" ...) ; => success

-- 
Pete Forman              | Disclaimer: This posting is originated by
Western Geophysical      | myself and does not represent the opinion
[EMAIL PROTECTED]  | of Baker Hughes or its divisions.

Reply via email to