I am trying to create a directory with a timestamp. If I type at the prompt
mkdir "$(date +%Y-%m-%d_%H%M%S)"
I get a directory named with the date as I would like. If I put the same line in a bash script I get some strange characters at the end of the name. What is going on? I am attempting this in Cygwin and tried