[Lldb-commits] [PATCH] D79659: [lldb/Commands] Add ability to run shell command on the host.

Med Ismail Bennani via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Sat May 9 02:37:19 PDT 2020


mib updated this revision to Diff 263005.
mib edited the summary of this revision.
mib added a comment.

It looks like command options are not supported on aliases that already have options:

  (lldb) shell -t 1 -- sleep 5
  zsh:1: command not found: -t
  error: command returned with status 127

In this case, `shell -t 1 -- sleep 5 ` expands to `platform shell --host -- -t 1 -- sleep 5`,  and the option argument is passed as shell command instead of being parsed by lldb.

I might have done something wrong when creating the alias, so I'll skip the `test_shell_timeout` test until I come up with with a solution.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D79659/new/

https://reviews.llvm.org/D79659

Files:
  lldb/source/Commands/CommandObjectPlatform.cpp
  lldb/source/Commands/Options.td
  lldb/source/Interpreter/CommandInterpreter.cpp
  lldb/test/API/commands/shell/TestShellCommand.py

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D79659.263005.patch
Type: text/x-patch
Size: 5657 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20200509/7e7c6d02/attachment.bin>


More information about the lldb-commits mailing list