alexanderepstein / Bash-Snippets

A collection of small bash scripts for heavy terminal users

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Currency syntax error 1, the whole command doesn't work.

jamieveenswijk opened this issue · comments

Issue Label:

  • Bug
  • New feature
  • Enhancement
  • New component

Description:
When trying to convert currency with the "currency" command, the script gives a (standard_in) 1: syntax error.

If its a bug make sure to include this section.

OS and OS version:

  • Mac
  • Linux 32 Bit
  • Linux 64 Bit
  • Windows 32 Bit
  • Windows 64 Bit

OS Version: Ubuntu 20.04

image

commented

Running on MacOS Big Sur. Got parsing error. Looks like the API return value changed from the source.

hong@C02FN173MD6V server % currency USD EUR 540 (standard_in) 1: parse error (standard_in) 1: parse error (standard_in) 1: parse error | USD to EUR | Rate: | USD: 540 | EUR: hong@C02FN173MD6V server % currency USD CAD 540 (standard_in) 1: parse error (standard_in) 1: parse error (standard_in) 1: parse error | USD to CAD | Rate: | USD: 540 | CAD: hong@C02FN173MD6V server % currency What is the base currency: USD What currency to exchange to: CAD What is the amount being exchanged: 100 (standard_in) 1: parse error (standard_in) 1: parse error (standard_in) 1: parse error | USD to CAD | Rate: | USD: 100 | CAD:

commented

You need to pull the following change in order to make it work: 9f92e2e