|
From: <sv...@va...> - 2008-09-11 15:03:53
|
Author: bart Date: 2008-09-11 16:03:59 +0100 (Thu, 11 Sep 2008) New Revision: 8600 Log: Added a note explaining that the code in this file is interpreted by more than one shell. Modified: trunk/nightly/conf/georgia-tech-cellbuzz.conf Modified: trunk/nightly/conf/georgia-tech-cellbuzz.conf =================================================================== --- trunk/nightly/conf/georgia-tech-cellbuzz.conf 2008-09-10 20:20:09 UTC (rev 8599) +++ trunk/nightly/conf/georgia-tech-cellbuzz.conf 2008-09-11 15:03:59 UTC (rev 8600) @@ -2,6 +2,10 @@ # Specifics for the Georgia Tech Cellbuzz cluster (Fedora Core release 6 on the host # and IBM BladeCenter QS20 target). # See also http://wiki.cc.gatech.edu/cellbuzz/index.php/Main_Page. +# +# Note: please keep in mind that the default shell (a.o. used by cron) on the +# Georgia Tech Cellbuzz cluster is tcsh. Any shell code must be suitable for +# sh, bash and tcsh. As an example, tcsh understands ">&" but not "2>&1". ABT_DETAILS="IBM BladeCenter QS20" ABT_CONFIGURE_OPTIONS="--build=x86_64-linux-gnu --host=powerpc64-unknown-linux --target=powerpc64-unknown-linux STRIP=/opt/cell/bin/ppu-strip CC=/opt/cell/bin/ppu-gcc CPP='/opt/cell/bin/ppu-gcc -E' CXX=/opt/cell/bin/ppu-g++ RANLIB=/opt/cell/bin/ppu-ranlib CCAS=/opt/cell/bin/ppu-gcc" |
|
From: Rich C. <Ric...@me...> - 2008-09-11 15:26:17
|
If you put #!/bin/bash as the first line of the file, it won't matter which shell is the default. The invoking shell will call the listed interpreter for the rest of the file. On Thu, 11 Sep 2008 16:04:01 +0100 (BST) sv...@va... wrote: > Author: bart > Date: 2008-09-11 16:03:59 +0100 (Thu, 11 Sep 2008) > New Revision: 8600 > > Log: > Added a note explaining that the code in this file is interpreted by more than one shell. > > Modified: > trunk/nightly/conf/georgia-tech-cellbuzz.conf > > > Modified: trunk/nightly/conf/georgia-tech-cellbuzz.conf > =================================================================== > --- trunk/nightly/conf/georgia-tech-cellbuzz.conf 2008-09-10 20:20:09 UTC (rev 8599) > +++ trunk/nightly/conf/georgia-tech-cellbuzz.conf 2008-09-11 15:03:59 UTC (rev 8600) > @@ -2,6 +2,10 @@ > # Specifics for the Georgia Tech Cellbuzz cluster (Fedora Core release 6 on the host > # and IBM BladeCenter QS20 target). > # See also http://wiki.cc.gatech.edu/cellbuzz/index.php/Main_Page. > +# > +# Note: please keep in mind that the default shell (a.o. used by cron) on the > +# Georgia Tech Cellbuzz cluster is tcsh. Any shell code must be suitable for > +# sh, bash and tcsh. As an example, tcsh understands ">&" but not "2>&1". > > ABT_DETAILS="IBM BladeCenter QS20" > ABT_CONFIGURE_OPTIONS="--build=x86_64-linux-gnu --host=powerpc64-unknown-linux --target=powerpc64-unknown-linux STRIP=/opt/cell/bin/ppu-strip CC=/opt/cell/bin/ppu-gcc CPP='/opt/cell/bin/ppu-gcc -E' CXX=/opt/cell/bin/ppu-g++ RANLIB=/opt/cell/bin/ppu-ranlib CCAS=/opt/cell/bin/ppu-gcc" > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Valgrind-developers mailing list > Val...@li... > https://lists.sourceforge.net/lists/listinfo/valgrind-developers > -- Rich Coe ric...@me... Virtual Principle Engineer General Electric Healthcare Technologies Global Software Platforms, Computer Technology Team |
|
From: Bart V. A. <bar...@gm...> - 2008-09-11 16:54:58
|
On Thu, Sep 11, 2008 at 5:25 PM, Rich Coe <Ric...@me...> wrote: > If you put > #!/bin/bash > as the first line of the file, it won't matter which shell is the default. Sorry but this won't work since the *.conf files are read by the 'nightly' script via source <filename>. The source command ignores lines like "#!/bin/bash'. Furthermore, Valgrind does not only run on Linux systems but also on AIX systems. That's why all shell scripts in Valgrind must be written such thath they work with /bin/sh instead of /bin/bash. Bart. |
|
From: Rich C. <Ric...@me...> - 2008-09-11 18:12:10
|
cron has never 'sourced' shell scripts. It sounds like you have something broken on your system. It's been a few years since I've used an AIX system, I would have thought that they would have bash by now. That's not a major problem though because there's not major difference between sh/bash/ksh. And it's easy enough not to use any of the bash extensions. R. On Thu, 11 Sep 2008 18:55:08 +0200 "Bart Van Assche" <bar...@gm...> wrote: > On Thu, Sep 11, 2008 at 5:25 PM, Rich Coe <Ric...@me...> wrote: > > If you put > > #!/bin/bash > > as the first line of the file, it won't matter which shell is the default. > > Sorry but this won't work since the *.conf files are read by the > 'nightly' script via source <filename>. The source command ignores > lines like "#!/bin/bash'. > > Furthermore, Valgrind does not only run on Linux systems but also on > AIX systems. That's why all shell scripts in Valgrind must be written > such thath they work with /bin/sh instead of /bin/bash. > > Bart. > -- Rich Coe ric...@me... Virtual Principle Engineer General Electric Healthcare Technologies Global Software Platforms, Computer Technology Team |
|
From: Bart V. A. <bar...@gm...> - 2008-09-11 19:32:17
|
On Thu, Sep 11, 2008 at 8:11 PM, Rich Coe <Ric...@me...> wrote: > cron has never 'sourced' shell scripts. I know. It's not cron that sources nightly/conf/?.conf, but it's the script nightly/bin/nightly that does this. > It's been a few years since I've used an AIX system, I would have thought > that they would have bash by now. That's not a major problem though because > there's not major difference between sh/bash/ksh. And it's easy enough > not to use any of the bash extensions. It's been some time since I have used an AIX system. Can anyone confirm or deny whether it is safe to assume that all AIX versions supported by Valgrind have bash installed in the path /bin/bash ? Bart. |
|
From: Florian K. <br...@ac...> - 2008-09-11 20:25:35
|
On Thursday 11 September 2008 15:32:26 Bart Van Assche wrote: > > It's been some time since I have used an AIX system. Can anyone > confirm or deny whether it is safe to assume that all AIX versions > supported by Valgrind have bash installed in the path /bin/bash ? > It's not safe to assume that AIX provides /bin/bash. I have access to boxes running AIX 5.[13] and none of them has bash. Not even in /opt/freeware/bin. Florian |