public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/16999] New: HISTSIZE behavior should match Bash's
@ 2014-05-30  3:36 ezyang at mit dot edu
  2014-06-13 19:53 ` [Bug gdb/16999] " chrismatteri at gmail dot com
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: ezyang at mit dot edu @ 2014-05-30  3:36 UTC (permalink / raw)
  To: gdb-prs

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

            Bug ID: 16999
           Summary: HISTSIZE behavior should match Bash's
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: ezyang at mit dot edu

Currently, if a HISTSIZE is passed to gdb which atoi cannot parse, gdb decides
that the desired history size is zero. This is not so great; usually people
want their history size to be infinite and not zero, especially seeing as this
behavior is different from that of bash, which assumes /infinite/ history size
when the value of HISTSIZE is empty. Thus, there is an annoying situation where
'export HISTSIZE=INFINITE' causes Bash to keep infinite history, but gdb to
keep zero history! To make matters worse, the environment variable overrides
the setting in .gdbinit. Please consider setting history_size_setshow_var to
the maximum signed integer (since readline uses a signed int) when it is not
parseable.

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


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-06-17 18:30 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-30  3:36 [Bug gdb/16999] New: HISTSIZE behavior should match Bash's ezyang at mit dot edu
2014-06-13 19:53 ` [Bug gdb/16999] " chrismatteri at gmail dot com
2014-07-11 11:05 ` jason.vas.dias at gmail dot com
2015-05-01 11:41 ` jason.vas.dias at gmail dot com
2015-05-01 15:55 ` dje at google dot com
2015-05-04  9:58 ` palves at redhat dot com
2015-06-17 18:14 ` cvs-commit at gcc dot gnu.org
2015-06-17 18:14 ` cvs-commit at gcc dot gnu.org
2015-06-17 18:30 ` patrick at parcs dot ath.cx

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).