LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Bash alias: issue with character (https://www.linuxquestions.org/questions/linux-general-1/bash-alias-issue-with-character-416703/)

riotxix 02-17-2006 09:05 PM

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!!

gilead 02-17-2006 09:52 PM

I don't think so - according to `man bash` aliases work on commands, where && is an operator.

riotxix 02-17-2006 09:55 PM

good point...still, any effective solution (alias) or otherwise would suffice. I like configurability ;)

gilead 02-17-2006 10:00 PM

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 '&&'.


All times are GMT -5. The time now is 03:15 PM.