[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How cd to a directory with special characters like environment\<\-?
From: |
Andreas Schwab |
Subject: |
Re: How cd to a directory with special characters like environment\<\-? |
Date: |
Fri, 09 Apr 2010 18:30:34 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) |
Greg Wooledge <wooledg@eeg.ccf.org> writes:
> On Fri, Apr 09, 2010 at 11:59:20AM -0400, Chris F.A. Johnson wrote:
>> On Fri, 9 Apr 2010, Marc Herbert wrote:
>> > Le 08/04/2010 22:58, Peng Yu a ?crit :
>
>> > > $ mkdir environment\<\-
>> > > $ cd environmen\<\-
>> > > -bash: cd: environmen<-: No such file or directory
>
>> > In such situations I find completion (TAB) really great since it does
>> > the hard quoting work for you (and does no typo).
>
>> That, or up-arrow (or Ctrl-P) to recall previous command.
>
> As long as we're being exhaustively thorough...
>
> ... or cd "$_" to reuse the last word of the previous command.
> ... or cd !$ to reuse the last word in csh-style history expansion.
... or cd M-. (type Meta-period)
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."