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 :