Search found 3 matches

by cfaj
Sat May 11, 2013 8:18 am
Forum: Scripts & Bash
Topic: Bash Instrcution source dosen't work
Replies: 8
Views: 2604

Re: Bash Instrcution source dosen't work

Environment variables are not "global", they only have effect within the shell that you set them. So it's as expected that they don't work when you open another shell. But if you put this in your .bashrc as suggested, it will be run whenever you start a new shell. Environment variables, i.e. those ...
by cfaj
Sat May 11, 2013 8:11 am
Forum: Scripts & Bash
Topic: Expected loop does not happens in a bash script. :shock:
Replies: 5
Views: 1860

Re: Expected loop does not happens in a bash script. :shock:

I don't see any problems and it also works perfectly fine for me. What happens if you call it from a terminal? sh yourscript.sh Perhaps try bash yourscript.sh instead; running it with sh while you are using bash syntax is not funny :wink: The only difference when bash is run as sh is the scripts it...
by cfaj
Sat May 11, 2013 7:56 am
Forum: Scripts & Bash
Topic: How to write a Bash shell script - by example
Replies: 43
Views: 57392

Re: How to write a Bash shell script - by example

Habitual wrote:Bash is not a "programming" "language" in that it does not have an interpreter.
Bash is a command processor.
Bash is an interpreter (that's how it executes scripts).
It is a programming language; "script" and "program" are synonymous.

Go to advanced search