[lldb] Expand $ when using tcsh
authorJonas Devlieghere <jonas@devlieghere.com>
Wed, 13 Apr 2022 16:42:56 +0000 (09:42 -0700)
committerJonas Devlieghere <jonas@devlieghere.com>
Wed, 13 Apr 2022 20:01:09 +0000 (13:01 -0700)
commitacc56e55feee61fc0038bc132a94e54ce56ced98
treef866f2ffe849368dc40334e40fb5d077bbb0edea
parent2f98c5febce2840034010c7ad9931988fc8dc61b
[lldb] Expand $ when using tcsh

Unlike for any of the other shells, we were escaping $ when using tcsh.
There's nothing special about $ in tcsh and this prevents you from
expanding shell variables, one of the main reasons this functionality
exists in the first place.

Differential revision: https://reviews.llvm.org/D123690
lldb/source/Utility/Args.cpp
lldb/test/Shell/Process/Inputs/echo.c [new file with mode: 0644]
lldb/test/Shell/Process/TestShell.test [new file with mode: 0644]
lldb/unittests/Utility/ArgsTest.cpp