Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH] cd command defaults to ~
@ 2012-07-05  2:31 Nathaniel Flath
  2012-07-05 14:00 ` Jan Kratochvil
  0 siblings, 1 reply; 25+ messages in thread
From: Nathaniel Flath @ 2012-07-05  2:31 UTC (permalink / raw)
  To: gdb-patches

Hi,

'cd' in bash defaults to ~, whereas in gdb will throw an error.  This
patch has the 'cd' command in gdb use '~' as a default instead of
giving this error.


Thanks,
Nathaniel Flath

diff -u -r1.131 cli-cmds.c
--- cli/cli-cmds.c	13 Jun 2012 15:47:15 -0000	1.131
+++ cli/cli-cmds.c	5 Jul 2012 02:26:36 -0000
@@ -367,7 +367,7 @@
   dont_repeat ();

   if (dir == 0)
-    error_no_arg (_("new working directory"));
+    dir = "~";

   dir = tilde_expand (dir);
   make_cleanup (xfree, dir);


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

end of thread, other threads:[~2012-08-07 16:02 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-05  2:31 [PATCH] cd command defaults to ~ Nathaniel Flath
2012-07-05 14:00 ` Jan Kratochvil
2012-07-05 17:34   ` Nathaniel Flath
2012-07-05 17:50     ` Eli Zaretskii
2012-07-05 18:09     ` Tom Tromey
2012-07-07  4:29       ` Nathaniel Flath
2012-07-07  6:17         ` Jan Kratochvil
     [not found]           ` <CAPrg3HBCBs5tmuM9qH=Q=_PgPVb8Rb-=fbPX_ZSy1dEWgKcY9g@mail.gmail.com>
     [not found]             ` <20120722163408.GA20790@host2.jankratochvil.net>
2012-07-22 16:37               ` Nathaniel Flath
2012-07-22 16:50                 ` Jan Kratochvil
2012-07-23  7:42                   ` Sergio Durigan Junior
2012-07-23 14:14                   ` Tom Tromey
2012-08-04  5:55                     ` Nathaniel Flath
2012-08-04  6:05                       ` Sergio Durigan Junior
2012-08-04  7:11                       ` Eli Zaretskii
2012-08-04 17:10                         ` Nathaniel Flath
2012-08-04 17:16                           ` Eli Zaretskii
2012-08-04 18:16                             ` Nathaniel Flath
2012-08-04 18:28                               ` Jan Kratochvil
     [not found]                                 ` <CAPrg3HDpFytQmCHe2GSzW=_ckAcNXN5UPJ5qPWDPHgwzY8RWzw@mail.gmail.com>
2012-08-06  9:15                                   ` Nathaniel Flath
2012-08-06 18:43                                     ` [commit] " Jan Kratochvil
2012-08-07  5:52                                       ` [obv] testsuite: default.exp: Fix cd regression [Re: [commit] [PATCH] cd command defaults to ~] Jan Kratochvil
2012-08-07  7:31                                       ` [commit] [PATCH] cd command defaults to ~ Nathaniel Flath
2012-08-07  7:53                                         ` Jan Kratochvil
2012-08-07 16:02                                           ` Nathaniel Flath
2012-07-22 17:13                 ` Eli Zaretskii

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox