Some doubts in scripting language analysis

Source: Internet
Author: User

Question 1: Why is it called a scripting language?

Scripting language English is script language.

The so-called script explanation is: a copy of a text used by A director or performer. That is, according to script, directing or performing.

Used on a computer may become: text that can be executed.

Some people think: The source program is a text format, can be interpreted as the execution of the language can be counted as a scripting language. such as: Python,perl,php,shell,awk and so on, many. However, there are some scripting languages that have changed, such as Python,perl can already be compiled into intermediate code and then executed, such a scripting language can already be called a compiled scripting language.

There is a difference between the scripting language and the interpretation language. Explanation language is the language that explains execution, but the code that executes is not necessarily text-formatted. The script language program is a text file and is interpreted as executing. But the two differences are somewhat blurred. It's a little different anyway, but it doesn't seem to be much of a subdivision of scripting language and interpreting language.

Question 2: What is the difference between bash,sh and shell programming?

First explain what the Unix shell is?  Unix shell is the UNIX system command interpreter, such as you hit an LS, it gives you to return to the current directory of files, directory list, return to this list is the shell's work. What is the difference between bash and sh? Is the difference between the types of interpreters. The difference between Unix shells is that because the interpreter is not the same, the syntax of the interpreter is slightly different. The more common interpreters are: Csh,ksh,bash. A lot of the system default is Bash,/usr/bin/sh is it.

What is the difference between a 3:perl and a shell?

Perl is more suited to network programming than the shell, and the shell is a "sharp weapon" for system administrators, and Perl is almost omnipotent, and of course, without the "platform" of the shell, it's hard to imagine how to run a Perl program. Perl is a programming language. The shell is also a programming language. But each has a weight: 1, the shell is focused on system management, but not on the network programming. 2, Perl is an all-round design language, can be used as a system management. But you can also compile the network program, GUI program.

Some doubts in scripting language analysis

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.