Closed GoogleCodeExporter closed 9 years ago
Thanks for reporting this, Bernhard. Actually, that's exactly what the script
tries to do on line 57, by calling the function 'die', but it says it does not
find it. I can find two reasons for that:
1/ the function definition must be before its first usage; that's not what I am
used to with my Bash, but I imagine it could be the case with some variant.
Could you try to move it from lines 99-103 (from "die() {" to "}") to before
its first use (like right after the first comments at the top of the file)?
2/ you are not using Bash. In that case you could try to call it explicitly
(by typing something like "bash xspec.sh") and see if that solves the problem.
I think anyway we'd best avoid the dependence on Bash and make the necessary
changes to be POSIX sh-compliant.
Any info on this last point more than welcome :-)
Original comment by fgeorges
on 17 Sep 2010 at 7:16
Original comment by fgeorges
on 17 Sep 2010 at 7:16
Well, actually I was able to reproduce the problem after all. I moved the
function declarations at the top of the file, in revision 188. Thanks!
Original comment by fgeorges
on 17 Sep 2010 at 7:45
I forgot, please let me know if that solves your problem, so I can flag the
issue as verified.
Original comment by fgeorges
on 17 Sep 2010 at 7:45
It does solve the problem to move the die function up. That's what I had
submitted in my patch, too (see the patch I attached when I opened the issue).
Original comment by sbs....@gmail.com
on 21 Sep 2010 at 12:55
He he right, I hadn't see you patch (I still have to get used to the Google
Code interface, but after a while it starts to prove rather efficient).
Thanks for your help!
Original comment by fgeorges
on 21 Sep 2010 at 1:21
Original issue reported on code.google.com by
sbs....@gmail.com
on 17 Sep 2010 at 2:25Attachments: