0

I am trying to append /api/json to a url and echo it in the terminal. However the output looks strange. I see the string i'm trying to append ends up at the start of first string, also removing https://h from the url. Why does this happen?

❯ echo $location
https://hyc-************devops.com/queue/item/126498/
❯ echo "$location"/api/json
/api/jsonyc-************devops.com/queue/item/126498/

proof :

enter image description here

anandhu
  • 686
  • 2
  • 13
  • 40

0 Answers0