Tag Info

Hot answers tagged

2

This looks like the version that patched shellshock (Subject to other bug variations / patches.) for cygwin bash: Date: Mon, 29 Sep 2014 15:22:43 -0600 https://cygwin.com/ml/cygwin-announce/2014-09/msg00040.html AKA: 4.1.14-7 " This is a minor rebuild which picks up an upstream patch to fix CVE-2014-7169 and all other ShellShock attacks (4.1.13-6 was ...


1

The file you're using has windows style line feeds (CR) at the end of them (same thing happened to me using Cygwin on Windows XP). Use 'dos2unix.exe' to rectify and you should be ok: $ dos2unix.exe script.sh dos2unix: converting file script.sh to Unix format... Then rerun your script and those error messages should no longer appear.



Only top voted, non community-wiki answers of a minimum length are eligible