public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug testsuite/18550] New: GDB's testsuite and user's shell history
@ 2015-06-17 13:19 palves at redhat dot com
  0 siblings, 0 replies; only message in thread
From: palves at redhat dot com @ 2015-06-17 13:19 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=18550

            Bug ID: 18550
           Summary: GDB's testsuite and user's shell history
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: testsuite
          Assignee: unassigned at sourceware dot org
          Reporter: palves at redhat dot com
  Target Milestone: ---

In https://sourceware.org/ml/gdb-patches/2015-06/msg00361.html,
Pedro Alves wrote:

> For HISTSIZE, should we audit tests that might start an interactive
> shell (e.g., "(gdb) shell") and result in truncating the history file?
> Guess better would be to set HISTSIZE="" and HISTFILE=/dev/null
> or something like that so shells we start don't have a chance of
> mucking with the user's history files?
> 
> Urgh, yes, we already have that issue today:
> 
> $ make check RUNTESTFLAGS="gdb.base/batch-preserve-term-settings.exp"
> $ tail -n 5 ~/.bash_history
> stty || echo "not found"
> /home/pedro/gdb/mygit/build/gdb/testsuite/../../gdb/gdb -nw -nx -data-directory /home/pedro/gdb/mygit/build/gdb/testsuite/../data-directory  -batch -ex "set height unlimited" -ex "start" --args "/home/pedro/gdb/mygit/build/gdb/testsuite/gdb.base/batch-preserve-term-settings"
> echo test_echo
> stty || echo "not found"
> exit
> 
> Whoops...

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-06-17 13:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-17 13:19 [Bug testsuite/18550] New: GDB's testsuite and user's shell history palves at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).