All current UNIX Systems Support interpreter files) (Also known as interpreter script ). This type of file is:
The space between the exclamation point and pathname is optional. The most common interpreter file starts with the following columns:
#! /
Shell interpreter (learning note 4) and shell interpreterI. Shell interpreter
Shell interpreter, a bridge between the user and the operating system kernel
Shell is between the operating system kernel and the user. It is responsible for receiving
Introduction
People who work with shell are familiar with shell programming in Unix/Linux. # is mentioned in all shell programming books #! /Bin/bash. What exactly does it contain? What does this string mean for the operating system? You may say,
People who work with shell are familiar with shell programming in Unix/Linux. # is mentioned in all shell programming books #! /Bin/bash. What exactly does it contain? What does this string mean for the operating system? You may say, isn't it true
definition: Given a language, defines a representation of his grammar, and defines an interpreter that uses the representation to interpret a sentence in a language.
Type: class behavior pattern
class Diagram:
The structure abstraction interpreter
Design PHP
Interpreter mode definition(It is rarely encountered in real projects, so the theory goes first ...)
The interpreter mode is a solution for parsing according to the prescribed syntax, which is rarely used in current projects. It is
1.Shell IntroductionThe shell is a program written in C that is a bridge for users to use Linux. The shell is both a command language and a programming language. A Shell is an application that provides an interface through which users access the
0. Interpreter (interpreter) mode definition:given a language, defines a representation of its grammar, and defines an interpreter that uses the representation to interpret a sentence in a language. belongs to the behavioral pattern.The interpreter
Shell is like the editor: everyone has their own choice and tries to defend the choice and tell you why it should be used ). Indeed, shell provides different functions, but they all implement the core concept of development decades ago.
I used
[Enter the python shell environment:] (python is called the command interpreter, windows is called cmd, and unix is called shell)Cmd InputSet path = % path %; e: \ python2.7Enter pythonEnter the python shell Interface, as shown in the following code:
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.