Skip to main content
edited tags
Link
Shog9
  • 101
  • 7
  • 26
edited tags
Link
Seth Mod
  • 58.9k
  • 3
  • 47
  • 73
added 694 characters in body
Source Link
dessert
  • 40.6k
  • 17
  • 36

Today I tried to search for this answer, but the only thing I could remember from it was $_, so I tried to search for this term: https://askubuntu.com/search?q=%24_

To my surprise the result page claimed to search for a single underscore only and didn’t find a single post:

results found containing _

I read the help page and tried to quote the string without any avail, so I got curious:

  • searching for $_results found containing _
    0 results
  • searching for $@ (without single quotes!) → results found containing "$@"
    0 results
  • searching for $*results found containing *
    678,109 results, not necessarily containing either $ or *
  • searching for $1results found containing 1
    91,291 results, exactly like searching for 1

As neither of those searches give the expected result:

How do I properly search for a string containing $ using the site’s search function?

Please do not comment or answer with “Did you try [third-party search engine]?” – I am well aware of google and the like, but if we have a search function it should work properly on its own.

I found meta.SE: Search terms with dollar signs ($) are ignored, but this solution doesn’t work:

The odd thing is: It works well if one searches for the string formatted as code! But we all know, not everybody formats a simply thing like $@ as code every times, plus it may appear in a quotation – there has to be a way to search for it!

Today I tried to search for this answer, but the only thing I could remember from it was $_, so I tried to search for this term: https://askubuntu.com/search?q=%24_

To my surprise the result page claimed to search for a single underscore only and didn’t find a single post:

results found containing _

I read the help page and tried to quote the string without any avail, so I got curious:

  • searching for $_results found containing _
    0 results
  • searching for $@ (without single quotes!) → results found containing "$@"
    0 results
  • searching for $*results found containing *
    678,109 results, not necessarily containing either $ or *
  • searching for $1results found containing 1
    91,291 results, exactly like searching for 1

As neither of those searches give the expected result:

How do I properly search for a string containing $ using the site’s search function?

Please do not comment or answer with “Did you try [third-party search engine]?” – I am well aware of google and the like, but if we have a search function it should work properly on its own.

Today I tried to search for this answer, but the only thing I could remember from it was $_, so I tried to search for this term: https://askubuntu.com/search?q=%24_

To my surprise the result page claimed to search for a single underscore only and didn’t find a single post:

results found containing _

I read the help page and tried to quote the string without any avail, so I got curious:

  • searching for $_results found containing _
    0 results
  • searching for $@ (without single quotes!) → results found containing "$@"
    0 results
  • searching for $*results found containing *
    678,109 results, not necessarily containing either $ or *
  • searching for $1results found containing 1
    91,291 results, exactly like searching for 1

As neither of those searches give the expected result:

How do I properly search for a string containing $ using the site’s search function?

Please do not comment or answer with “Did you try [third-party search engine]?” – I am well aware of google and the like, but if we have a search function it should work properly on its own.

I found meta.SE: Search terms with dollar signs ($) are ignored, but this solution doesn’t work:

The odd thing is: It works well if one searches for the string formatted as code! But we all know, not everybody formats a simply thing like $@ as code every times, plus it may appear in a quotation – there has to be a way to search for it!

Source Link
dessert
  • 40.6k
  • 17
  • 36
Loading