Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: From: Miguel Alves To: cygwin AT cygwin DOT com Subject: 1.1.7: Problem when "sourcing" shell files Date: Tue, 13 Feb 2001 16:39:02 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" I Have a simple problem with setting env variables in a shell and making them available to my shell. I Just Have this script (xx.sh) #!/bin/bash if [ "a" = "a" ]; then export HELLO1=WORLD1 echo $HELLO1 fi echo "End" #### END SCRIPT ###### If I execute it with the "." before the command to make the HELLO1 variable recognised in my bash session when the script finish. The execution gives the following error malves> . xx.sh bash: /disk2/data/malves/bin/xx.sh: line 9: syntax error: unexpected end of file If if execute it without the "." malves> xx.sh WORLD1 End I don't get any problems. I'am sure that this is a very stupid error how can I solve this. TIA, Miguel Alves -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple