Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

ssh: If not valid expression, rather than generate a error, try to us…

…e the cmd.
  • Loading branch information...
commit 6dd7f8b06500110b4aeed660c674af6738ef709d 1 parent b269e15
@gustehn gustehn authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 lib/ssh/src/ssh_cli.erl
View
7 lib/ssh/src/ssh_cli.erl
@@ -189,7 +189,12 @@ terminate(_Reason, _State) ->
%%--------------------------------------------------------------------
exec(Cmd) ->
- eval(parse(scan(Cmd))).
+ case eval(parse(scan(Cmd))) of
+ {error, _} ->
+ {Cmd, 0}; %% This should be an external call
+ Term ->
+ Term
+ end.
scan(Cmd) ->
erl_scan:string(Cmd).
Please sign in to comment.
Something went wrong with that request. Please try again.