1

Trying to skill up in Linux. I have written a bash script to google search from the terminal. It works adequately an I run it by typing

~/WHAT. So far so good. I can also run it using ./WHAT.

I then edit the bashrc file and add this at the end

alias < WHAT >='./WHAT'

But then when I run

source ~/.bashrc

I get the error

=./WHAT: No such file or directory

Where have have I gone wrong? Thanks in advance for your help!

1 Answers1

4

If you really added

alias < WHAT >='./WHAT'

you're misunderstanding Bash syntax. Read and re-read man bash. What you want is probably

alias WHAT='./WHAT'

but that's not what you want at all. See my answer over here

waltinator
  • 37,856