what is the programing language used in ubuntu shell script

Asked by aneesh

what is the programing language used in ubuntu shell script ?

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
wojox (wojox) said :
#1

It depends on the script. The two main one's are bash and python.

Revision history for this message
aneesh (aneesholv) said :
#2

Is there using c or c++ language any where in shell script ?

On Mon, Apr 12, 2010 at 7:00 PM, wojox <<email address hidden>
> wrote:

> Your question #107148 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/107148
>
> Status: Open => Answered
>
> wojox proposed the following answer:
> It depends on the script. The two main one's are bash and python.
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/ubuntu/+question/107148/+confirm?answer_id=0
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+question/107148
>
> You received this question notification because you are a direct
> subscriber of the question.
>

--
------with regards,

                      Aneesh.T.V
                      Mob:9544067525

Revision history for this message
pat.pannuto (ppannuto) said :
#3

No, C and C++ are not interpreted languages; they need to be compiled.

If your question is regarding a specific script, look near the beginning of the file, there should be a line looking something like this:

BASH: http://en.wikipedia.org/wiki/Bash_(Unix_shell)
#!/usr/bin/bash

PYTHON: http://en.wikipedia.org/wiki/Python_(programming_language)
#!/usr/bin/python
#!/usr/bin/env python

There are several other languages that could also be used, although they will have to be an intepreted language ( http://en.wikipedia.org/wiki/Interpreted_language ) - thus NOT C or C++.

Revision history for this message
wojox (wojox) said :
#4

c or c++ are not really considered shell scripts, but you can write c or c++ programs and compile them in the shell. If you open Computer > Filesystem > bin you'll notice some purple icons (diamond shaped) that are compiled c/c++ applications. While other are flat files that are shell scripts set with executable permissions.

Can you help with this problem?

Provide an answer of your own, or ask aneesh for more information if necessary.

To post a message you must log in.