[Lldb-commits] [lldb] [lldb] Escape ? for zsh (PR #112107)

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Tue Oct 15 02:46:43 PDT 2024


labath wrote:

I agree (and I don't think this is going to be very contentious) that we should not expand args from the lldb command line (precisely for the reason you mention). The trickiness comes from how this expansion is performed. The command line args are first copied into the `target.run-args` setting, and only later expanded when you actually type "run". The easiest thing to do would be to say that we never expand arguments that come from the setting, but that means something like this wouldn't be expanded either:
```
(lldb) settings set target.run-args -- *.txt # I am setting this manually and want this to be expanded
(lldb) run # no expansion
```

I would (probably?) be fine with that interpretation, but I suspect others will have different opinions. If we want command line args to not get expanded, but keep expanding the example above, then we may need to come up with a different way to pass cmdline args.

https://github.com/llvm/llvm-project/pull/112107


More information about the lldb-commits mailing list