Error when make Map Insets

I tried to make an inset map using gmt 6, but after trying to run it, there was an error, the map index display did not appear. Error display as well as images I include in the attachment. Please for a solution. Thank you very much in advance

csh and tcsh will remote that “?” if it does not match a file and that causes a problem. Please run this as a bash script.