![]() |
Bash scirpt help (msys)?
I wrote a script to generate makefiles...
And it works but not always :) Here is some info output... This shouldn't happen: :
$ mage.sh -u *.c > Makefile This is ok: :
$ mage.sh -u *.c And this is the guilty part of script (I think): :
UpdateNew () {Note that script works when not redirecting??? How should I fix this? Thanks Ooops, I just noticed that when not redirecting to Makefile (which is copied in the first place) everything works... Anyway can I fix this behavior? |
1 Attachment(s)
And here is some more "funny" stuff...
Bash debug output: :
$ cp copy MakefileI have put script in the attachment. |
I figured it out...
Makefile gets truncated if redirected to it before script is run (and Makefile copied)... Bye |
| All times are GMT -5. The time now is 10:06 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC