I have a script called buildgcc.sh with the following contents.
mymac$more buildgcc.sh
g++ -Wno-write-strings A.cpp B.cpp B.cpp c.cpp D.cpp E.cpp F.cpp artgdg.cpp G.cpp H.cpp I.cpp J.cpp K.cpp L.cpp M.cpp N.cpp O.cpp P.cpp
When I run the script I get an error:
mymac$./buildgcc.sh
No such file or directory+-4.2: P.cpp
But when I copy/paste the contents of the script into the command line:
mymac$g++ -Wno-write-strings A.cpp B.cpp B.cpp c.cpp D.cpp E.cpp F.cpp artgdg.cpp G.cpp H.cpp I.cpp J.cpp K.cpp L.cpp M.cpp N.cpp O.cpp P.cpp
mymac$
It works fine... anyone give me a clue what's going on here?