llvm-project/lldb/source/Host
Chris Bieneman b47711ab27 When invoking Terminal, don't assume the default shell
Summary:
If a user has their shell set to a non-POSIX conferment shell the TestTerminal.py tests fail because the shell blurb constructed here may not work in their shell.

In my specific case fish-shell (The Friendly Interactive Shell - http://fishshell.com) does not support $?, it instead uses $status (because it is friendly).

This patch removes the assumption of your default shell by running the constructed bash command via "/bin/bash -c ...". This should be safer for users mutating their shell environment.

Reviewers: tfiala

Subscribers: joerg, lldb-commits

Differential Revision: https://reviews.llvm.org/D25750

llvm-svn: 284552
2016-10-18 23:55:34 +00:00
..
android *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
common Make lldb -Werror clean on Windows. 2016-10-05 17:07:34 +00:00
freebsd Try to fix freebsd and android builds. 2016-09-19 18:03:54 +00:00
linux Fix build error on Android again. 2016-10-05 23:51:13 +00:00
macosx When invoking Terminal, don't assume the default shell 2016-10-18 23:55:34 +00:00
netbsd Unbreak the NetBSD build after recent changes 2016-09-20 22:26:29 +00:00
posix *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
windows Convert some Args index-based iteration to range-style iteration. 2016-10-05 23:40:23 +00:00
CMakeLists.txt Remove a duplicated block in cmake. 2016-07-28 22:11:54 +00:00