LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] Shell tip: bang commands...

[ILUG] Shell tip: bang commands...

Brian Foster blf at blf.utvinternet.ie
Sun May 14 19:45:16 IST 2006


  | Date: Sun, 14 May 2006 02:48:08 +0100
  | From: Sarah Fortune <fortunes at tcd.ie>
  |[ ... ]
  | > Getting stuff from the last command:
  | >     Full line:     % !!            becomes:   % vi foo.c bar.c
  | >     Last arg :     % svn ci !$     becomes:   % svn ci bar.c
  | 
  | In bash you can use Alt-. to fill in the last argument, it's nicer
  ! than !$ because you can see what it is before running the command.

 is there any way to turn this <Alt> and <Meta>
 garbage off?  I can get rid of some of the
 horrible things interactive bash(1) does with
 (from my `$HOME/.bashrc'):

  set +H                  # Disable csh(1)-style `!' history expansion
  shopt -u hostcomplete   # Disable `... at hostame' completion

 but the <Alt>/<Meta> nonsense drives me up the
 fscking wall!  (I'm an _original_ Bourne shell
 person from way back, and only switched first
 to Korn ksh(1), and then GNU bash(1), when they
 got Rob Pike's “cd spelling correction” — albeit
 neither implemented it quite properly ....  ;-(  ).

 ( for those who are confused, `!' csh(1)-stylwe
  stuff includes `!!' and `!$', and probably much
  of the other "features" Kevin highlighted. )

cheers!
	-blf-
-- 
Experienced (20+ yrs) kernel/software Eng: | Brian Foster   Montpellier,
 • Unix, embedded, &tc;  • Linux;  • doc;  | blf at utvinternet.ie   FRANCE
 • IDL, automated testing, process, &tc.   |  Stop E$$o (ExxonMobile)!
Résumé (CV) http://www.blf.utvinternet.ie  |     http://www.stopesso.com



More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell