Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 04-23-2002, 07:07 AM   #1
Registered: Apr 2002
Posts: 54

Rep: Reputation: 15
alias or function in .bashrc, which sends command to background

I'm trying to set up a simple alias that would function thusly:

"e temp.txt" would be the same as typing "emacs temp.txt &"
I've tried:

function e () {
emacs "$1" &

... which opens emacs... but it's not sent into the background. (Maintains focus in the xterm).

Does anybody know the solution?
Old 04-23-2002, 10:50 PM   #2
Registered: Apr 2002
Posts: 54

Original Poster
Rep: Reputation: 15
Aha, got it to work...

function ee () { emacs $* & }

For some reason, if the function name is only one letter long, it doesn't work... two or more, and it does.

I'll accept this for now.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
using 'watch' on an alias in .bashrc slackist Linux - General 11 01-29-2016 02:09 PM
adding perm. alias to .bashrc Lleb_KCir Linux - General 7 12-09-2004 03:35 PM
My first alias in .bashrc...'apostrophes 'getting' in the way?' Baix Linux - Newbie 3 06-17-2004 03:36 PM
alias and .bashrc whaase Linux - General 3 11-02-2003 08:03 PM
alias and bashrc Haldir Linux - Newbie 3 06-14-2002 06:11 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:21 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration