Re: [PATCH] cd command defaults to ~

Eli Zaretskii
2012-07-22T17:13:23Z

> Date: Sun, 22 Jul 2012 09:37:04 -0700
> From: Nathaniel Flath <flat0103@gmail.com>
>
> index: NEWS
> ===================================================================
> RCS file: /cvs/src/src/gdb/NEWS,v
> retrieving revision 1.533
> diff -u -r1.533 NEWS
> --- NEWS 4 Jul 2012 20:49:56 -0000 1.533
> +++ NEWS 7 Jul 2012 04:28:05 -0000
> @@ -3,6 +3,8 @@
>
> *** Changes since GDB 7.4
>
> +* The 'cd' command now defaults to using '~' if not given an argument.

OK, but since not everyone is born knowing what '~' means (think
Windows users), I would suggest a small correction:

The 'cd' command now defaults to using '~' (the home directory) if
not given an argument.

> @kindex cd
> @cindex change working directory
> @item cd @var{directory}

As Jan points out, the DIRECTORY part is now optional, which we
express by [...]. So:

@item cd @r{[}@var{directory}@r{]}

(The @r{} parts are needed to countermand the default @code formatting
of the @item line.)

> -Set the @value{GDBN} working directory to @var{directory}.
> +Set the @value{GDBN} working directory to @var{directory}. If given no
> +arguments, uses '~'.

"~" is a file name, so please use @file{~} instead of quoting it.

Also, I would replace the last sentence with

If not given, @var{directory} defaults to @file{~}.

OK with those changes.

Thanks.