网站首页  英汉词典

请输入您要查询的英文单词:

 

单词 HashBang
释义

HashBang

中文百科

Shebang Shebang (Unix)

(重定向自HashBang)

在计算机科学中,Shebang(也称为 Hashbang )是一个由井号和叹号构成的字符串行 #! ,其出现在文本文档的第一行的前两个字符。 在文档中存在 Shebang 的情况下,类 Unix 操作系统的进程载入器会分析 Shebang 后的内容,将这些内容作为解释器指令,并调用该指令,并将载有 Shebang 的文档路径作为该解释器的参数。

例如,以指令

开头的文档在执行时会实际调用 /bin/sh 进程(通常是 Bourne shell 或兼容的 shell,例如 bash、dash 等)来执行。这行内容也是 shell 脚本的标准起始行。

英语百科

Shebang (Unix) Shebang

(重定向自HashBang)
A shebang character sequence
Ein Hallo-Welt-Programm in Perl. Die erste Zeile enthält den Pfad zum Interpreter sowie ein Argument (-w).

In computing, a shebang is the character sequence consisting of the characters number sign and exclamation mark (#!) at the beginning of a script. It is also called sha-bang, hashbang, pound-bang, or hash-pling.

Under Unix-like operating systems, when a script with a shebang is run as a program, the program loader parses the rest of the script's initial line as an interpreter directive; the specified interpreter program is run instead, passing to it as an argument the path that was initially used when attempting to run the script. For example, if a script is named with the path path/to/script, and it starts with the following line:

随便看

 

英汉网英语在线翻译词典收录了3779314条英语词汇在线翻译词条,基本涵盖了全部常用英语词汇的中英文双语翻译及用法,是英语学习的有利工具。

 

Copyright © 2004-2024 encnc.com All Rights Reserved
更新时间:2025/8/6 5:50:29