BASH alias not working...
mathbymath at aol.com
Mon Jun 20 23:43:24 UTC 2005
This is the code I added to my "~/.bashrc":
alias "choose_to_edit"="cat /dev/null &&
cd ~/Documents/ &&
command ls | grep -n -v 'randomcraptonotmatch' | column &&
echo 'Choose which one to edit:' &&
if test $REPLY -eq 1 ;
then cat /dev/null &&
Before I continued any further with this script, I wanted to test to
see if that worked. However, it didn't...
It gives we the following error:
-bash: test: -eq: unary operator expected
What am I doing wrong?
Any help would be appreciated.
More information about the ubuntu-users