Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: Advanced search error #8

Closed
antonellocaroli opened this issue Oct 21, 2023 · 10 comments · Fixed by #9
Closed

[BUG]: Advanced search error #8

antonellocaroli opened this issue Oct 21, 2023 · 10 comments · Fixed by #9
Labels
bug Something isn't working

Comments

@antonellocaroli
Copy link
Contributor

Description of the bug

when I try Advanced search I always get an error

Steps To Reproduce

TERA SEARCH MENU:

  1. Tag
  2. Name
  3. Language
  4. Country code
  5. State
  6. Advanced search
  7. Main Menu
  8. Exit
    Choose an option: 6
    The query format is -d field=word.
    Field can be one of tag, name, language, country code and state.
    Fields can be combined, for example: -d tag=jazz -d state=queensland
    Or tag=rock language=spanish countrycode=us
    Or tag=country state=IL
    Write your quiry: tag=country state=IL
    tag=country
    /usr/share/tera/lib/lib.sh: line 140: KEY: unbound variable

Additional Information

No response

@antonellocaroli antonellocaroli added the bug Something isn't working label Oct 21, 2023
@shinokada
Copy link
Owner

shinokada commented Oct 21, 2023

You are missing -d:

 -d tag=country -d state=IL

image

@antonellocaroli
Copy link
Contributor Author

TERA MAIN MENU

  1. Play from my list
  2. Search radio stations
  3. List (Create/Read/Update/Delete)
  4. Delete a radio station
  5. I feel lucky
  6. Gist
  7. Exit
    Choose an option: 2

TERA SEARCH MENU:

  1. Tag
  2. Name
  3. Language
  4. Country code
  5. State
  6. Advanced search
  7. Main Menu
  8. Exit
    Choose an option: 6
    The query format is -d field=word.
    Field can be one of tag, name, language, country code and state.
    Fields can be combined, for example: -d tag=jazz -d state=queensland
    Or tag=rock language=spanish countrycode=us
    Or tag=country state=IL
    Write your quiry: -d tag=country -d state=IL
    -d
    /usr/share/tera/lib/lib.sh: line 140: KEY: unbound variable

@shinokada
Copy link
Owner

You don't need -d at the end.

@antonellocaroli
Copy link
Contributor Author

in Bold is output

TERA MAIN MENU

  1. Play from my list
  2. Search radio stations
  3. List (Create/Read/Update/Delete)
  4. Delete a radio station
  5. I feel lucky
  6. Gist
  7. Exit
    Choose an option: 2

TERA SEARCH MENU:

  1. Tag
  2. Name
  3. Language
  4. Country code
  5. State
  6. Advanced search
  7. Main Menu
  8. Exit
    Choose an option: 6
    The query format is -d field=word.
    Field can be one of tag, name, language, country code and state.
    Fields can be combined, for example: -d tag=jazz -d state=queensland
    Or tag=rock language=spanish countrycode=us
    Or tag=country state=IL
    Write your quiry: -d tag=jazz
-d
/usr/share/tera/lib/lib.sh: line 150: KEY: unbound variable

TERA MAIN MENU

  1. Play from my list
  2. Search radio stations
  3. List (Create/Read/Update/Delete)
  4. Delete a radio station
  5. I feel lucky
  6. Gist
  7. Exit
    Choose an option: 2

TERA SEARCH MENU:

  1. Tag
  2. Name
  3. Language
  4. Country code
  5. State
  6. Advanced search
  7. Main Menu
  8. Exit
    Choose an option: 6
    The query format is -d field=word.
    Field can be one of tag, name, language, country code and state.
    Fields can be combined, for example: -d tag=jazz -d state=queensland
    Or tag=rock language=spanish countrycode=us
    Or tag=country state=IL
    Write your quiry: tag=jazz
tag=jazz
/usr/share/tera/lib/lib.sh: line 150: KEY: unbound variable

TERA MAIN MENU

  1. Play from my list
  2. Search radio stations
  3. List (Create/Read/Update/Delete)
  4. Delete a radio station
  5. I feel lucky
  6. Gist
  7. Exit
    Choose an option: 2

TERA SEARCH MENU:

  1. Tag
  2. Name
  3. Language
  4. Country code
  5. State
  6. Advanced search
  7. Main Menu
  8. Exit
    Choose an option: 6
    The query format is -d field=word.
    Field can be one of tag, name, language, country code and state.
    Fields can be combined, for example: -d tag=jazz -d state=queensland
    Or tag=rock language=spanish countrycode=us
    Or tag=country state=IL
    Write your quiry: -d tag=jazz state=queensland
-d
/usr/share/tera/lib/lib.sh: line 150: KEY: unbound variable

@shinokada
Copy link
Owner

What is your Bash version?

@antonellocaroli
Copy link
Contributor Author

GNU bash, version 5.2.15(1)-release (x86_64-pc-linux-gnu)

@shinokada
Copy link
Owner

Does all other functions work?

@antonellocaroli
Copy link
Contributor Author

yes

@shinokada
Copy link
Owner

What is your OS? Are you using Mac and Homebrew?

@antonellocaroli
Copy link
Contributor Author

Gentoo linux

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants