LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 02-17-2006, 09:05 PM   #1
riotxix
LQ Newbie
 
Registered: Jul 2005
Location: England
Distribution: slackware (2.6.10)
Posts: 19

Rep: Reputation: 0
Question Bash alias: issue with character


Hi: I'd like to set 'alias ='&&' but it keeps being mis-intepreted:

% echo rg echo rh
rg echo rh

There must be a solution!!
 
Old 02-17-2006, 09:52 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 151Reputation: 151
I don't think so - according to `man bash` aliases work on commands, where && is an operator.
 
Old 02-17-2006, 09:55 PM   #3
riotxix
LQ Newbie
 
Registered: Jul 2005
Location: England
Distribution: slackware (2.6.10)
Posts: 19

Original Poster
Rep: Reputation: 0
Wink

good point...still, any effective solution (alias) or otherwise would suffice. I like configurability
 
Old 02-17-2006, 10:00 PM   #4
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 151Reputation: 151
Yeah - configurability is a good thing. I admit I'm having trouble thinking around this one though, I couldn't create a script or a function with a name of '&&'.
 
  


Reply


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
setting alias in bash, permanently allelopath Linux - General 6 10-24-2008 04:10 AM
bash ls --color alias? tripmix Linux - Newbie 7 01-18-2005 04:49 AM
alias in bash shell wincrk Linux - General 12 07-20-2004 12:35 PM
A bash alias question CodeWarrior Slackware 11 06-03-2003 07:09 PM
bash and alias kleptos Slackware 6 01-23-2003 08:01 AM


All times are GMT -5. The time now is 07:09 PM.

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