Re: Unable to properly execute a let statement from a shell script

2005-01-31 Thread Igor Pechtchanski
On Mon, 31 Jan 2005, Corinna Vinschen wrote: > [snip] > And please don't create TOFU(*)(**). > (*) top posting, full quote. > See http://www.acronymfinder.com/af-query.asp?Acronym=TOFU&Find=Find > (**) Hi Igor, can I get an entry in the acronym list now? ;-) You got it. If you can track dow

Re: Unable to properly execute a let statement from a shell script

2005-01-31 Thread Corinna Vinschen
On Jan 31 14:24, Paolo Gesmundo wrote: > Hi Corinna, > not sure what you mean with 'Shebang' http://dictionary.reference.com/search?q=shebang, second entry. And please don't create TOFU(*)(**). Corinna (*) top posting, full quote. See http://www.acronymfinder.com/af-query.asp?Acronym=TOFU

Re: Unable to properly execute a let statement from a shell script

2005-01-31 Thread Paolo Gesmundo
Hi Corinna, not sure what you mean with 'Shebang' Thanks Paolo - Original Message - From: "Corinna Vinschen" <[EMAIL PROTECTED]> To: Sent: Monday, January 31, 2005 1:34 PM Subject: Re: Unable to properly execute a let statement from a shell script On Jan 31 1

Re: Unable to properly execute a let statement from a shell script

2005-01-31 Thread Corinna Vinschen
On Jan 31 12:50, Paolo Gesmundo wrote: > Thanks for the responses. > > So, in cygwin for Win XP, is it possible to set my environment in such a > way that the default shell > is bash? It doesn't make sense to cover easily solvable problems in your shell script by changing sh to bash. You should

Re: Unable to properly execute a let statement from a shell script

2005-01-31 Thread Jon A. Lambert
Paolo Gesmundo wrote: Thanks for the responses. So, in cygwin for Win XP, is it possible to set my environment in such a way that the default shell is bash? I have no clue, and I am not suggesting you do this but what would be the affect of... cp bash.exe sh.exe Besides the initial installation and

Re: Unable to properly execute a let statement from a shell script

2005-01-31 Thread Jon A. Lambert
Paolo Gesmundo wrote: Thanks for the responses. So, in cygwin for Win XP, is it possible to set my environment in such a way that the default shell is bash? I have no clue, and I am not suggesting you do this but what would be the affect of... cp bash.exe sh.exe Besides the initial installation a

Re: Unable to properly execute a let statement from a shell script

2005-01-31 Thread Paolo Gesmundo
able to properly execute a let statement from a shell script Paolo Gesmundo wrote: I know that I could modify a.sh by adding #!/bin/bash at the top of the file but I would need to avoid this otherwise I have to modify too many scripts Is there a way to run a.sh like in Case 1 and get the proper res

Re: Unable to properly execute a let statement from a shell script

2005-01-31 Thread Brian Dessent
Paolo Gesmundo wrote: > I know that I could modify a.sh by adding #!/bin/bash > at the top of the file but I would need to avoid this > otherwise I have to modify too many scripts > > Is there a way to run a.sh like in Case 1 and get the > proper result like in Case 2? It sounds like your script

Re: Unable to properly execute a let statement from a shell script

2005-01-30 Thread Jani Tiainen
Paolo Gesmundo kirjoitti: Hi all, I am running bash on XP I have a very simple script a.sh a.sh: export P=1 let Q=$P+1 echo P=$P echo Q=$Q Case 1) If at prompt I run: a.sh let: not found P=1 Q= Case 2) If I run: bash a.sh P=1 Q=2 I know that I could modify