Take the 2-minute tour ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

Maybe this question is a bit silly, however I always fail to get the right result when I search Google for some particular words like $@( in bash) and other escape words. For instance, when I use bash $@ as the key words, the result contains no highlight signs like $@, which is useless for me;I have also tried bash "$@" or bash \$@, however there seems no improvement.

Can anyone give me some hints?

share|improve this question

migrated from superuser.com Dec 28 '12 at 10:27

This question came from our site for computer enthusiasts and power users.

    
1  
If you search at DuckGuckGo for $@, you get relevant info from StackOverflow. –  unor Dec 28 '12 at 15:58
add comment

1 Answer

up vote 4 down vote accepted

Search engines don't index the whole text. They toss most punctuation and index only the words that are left and where they were found using something called an inverted word index.

I think the reason you can't search for $@ is because it's just not in their index. They tossed it as punctuation. Consistent with that, notice that if you search for $@ alone, you get no matches.

share|improve this answer
    
So there's no solution then? –  Hongxu Chen Dec 28 '12 at 2:57
    
You can try another search engine. The engineers on each make their own decisions of what to keep and what to toss. But I don't think you're likely to have much luck. I expect most engines will toss $@. I've seen some ostensibly "programmer-oriented" search engines that claim to index special characters but all of the ones I've seen had rankers (the part that orders the results) that were so lame, the results were pretty much useless. –  Nicole Hamilton Dec 28 '12 at 3:09
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.