hi, > > I am using Ubuntu 7.10 gutsy gibbon version... and bash shell ... i removed > > th () from the line 2 of check_failure.sh file... and on running example 01 > > ... i get ... > > > > ../check_failure.sh: 2: function: not found
there is something seriously wrong with your distribution if you /bin/sh cannot handle "function". i assume you don't have any modifications in your .profile or .bashrc that redefine function to something else. as a test to make sure that your shell is to blame, please reinstate the original version of the check_failure.sh script and try to run the examples by typing: bash ./run_example and compare to sh ./run_example if only the second fails, you should complain to the ubuntu maintainers about shipping a non-standard bourne shell (and consider installing a different distribution). > > test: 8: 0: unexpected operator > > ../check_failure.sh: 9: Syntax error: "}" unexpected > > > > I think you have to change the first line of the script > from > #!/bin/sh > to > #!/bin/bash that would be the exampleXX/run_example scripts. since check_failure.sh is sourced by them... cheers, axel. > > > Andrea > > National Research Center S3, CNR-INFM ( http://s3.infm.it ) > Dip. Fisica, Univ. di Modena e Reggio E. (Italy) > Tel: +39 059 2055301; Fax: +39 059 374794; Skype: andrea_ferretti > URL: http://www.nanoscience.unimo.it > > Please, if possible, don't send me MS Word or PowerPoint attachments > Why? See: http://www.gnu.org/philosophy/no-word-attachments.html > > > _______________________________________________ > Pw_forum mailing list > Pw_forum at pwscf.org > http://www.democritos.it/mailman/listinfo/pw_forum > > -- ======================================================================= Axel Kohlmeyer akohlmey at cmm.chem.upenn.edu http://www.cmm.upenn.edu Center for Molecular Modeling -- University of Pennsylvania Department of Chemistry, 231 S.34th Street, Philadelphia, PA 19104-6323 tel: 1-215-898-1582, fax: 1-215-573-6233, office-tel: 1-215-898-5425 ======================================================================= If you make something idiot-proof, the universe creates a better idiot.
