On Fri, 9 Apr 2010, Greg Wooledge wrote:

> 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.
> 
> Personally, I disable csh-style history expansion, though.

   Same here. I want printable characters to appear on my screen when
   I type them. Anything else is ^&#...@-*&!

   In my .bashrc:

histchars=

-- 
   Chris F.A. Johnson, <http://cfajohnson.com>
   Author:
   Pro Bash Programming: Scripting the GNU/Linux Shell (2009, Apress)
   Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)


Reply via email to