In the Bash shell, for example, -u ensures that any unset variables are treated as an error.
例如,在Bash外壳中,- u可确保将任何未设置的变量作为错误处理。
Each recommendation is detailed below along with a Bash shell script for illustration.
下面详细讲述了每一条建议以及用于说明问题的脚本。
But bash shell scripts can act like applications and even perform some of the tasks and jobs that applications can do.
但是,bash shell脚本的行为与应用程序相似,甚至能够执行应用程序可以完成的一些任务和工作。
Copying the Bash shell scripts into the proper directory.
将Bash shell脚本复制到正确的目录下。
The advantages of using Bash shell scripts for function testing are.
使用Bash shell脚本进行功能测试的优点在于。
If your default shell is not Bash, and if the script does not work for you, then use the second form of calling shown below.
如果您的默认shell不是Bash,如果您的脚本无法运行,那么可以使用下文所示的第二种调用形式。
This community project provides a framework of extensions and convenience for the Bash shell.
这个社区项目提供了用来扩展和简化Bash shell的框架。
You should avoid these keywords—or what are known as bash shell reserved words—when choosing names for shell variables.
在为shell变量选择名称时,应该避免使用这些关键词(也称为bash shell保留字)。
Although UNIX shells are highly specialized and generally used interactively using the keyboard, a shell such as bash can also read input from a file.
尽管UNIXshell具有较高的专用性,且通常使用键盘进行交互,但某些shell如bash等也能从文件读取输入内容。
If the BASH shell is non-interactive, it expands the value of the BASH_ENV environment variable and executes the file named.
如果BASH Shell是非交互的,那么它将扩展BASH_ENV环境变量的值,并执行所指定的文件。
To write effective bash shell scripts, you must master the basic bash command set for navigation and daily routine tasks performed within the shell.
要想编写有效的bash shell脚本,就必须掌握在shell中执行导航和日常任务的基本bash命令集。
This section describes how to run the Bash shell scripts for function testing.
本节描述如何运用Bash shell脚本进行功能测试。
A "bash" shell is then returned to the user with the new session keyring and the key of a new type linked to the keyring.
然后,一个“bash”shell返回给用户,它带有新的会话keyring和链接到这个keyring的新类型的密钥。
There are two instances of bash (a shell) running, with the current directory being Sean's home directory.
有两个bash(一种Shell)实例正在运行,并且当前目录设置为sean的home目录。
You can save a pipeline or list in a file and then run it using the sh (default shell) or the bash command.
您可以将管道线或列表保存在一个文件中,然后使用sh(默认shell)或bash命令运行它。
The Bash shell provides plenty of programming constructs to develop scripts that have a range from very simple to medium complexity.
Bash shell提供了大量的编程构造用于开发从非常简单到中等复杂的脚本。
The open source bash shell that this article examines is one of the most powerful, practical, and extensible shells available.
本文讨论的开放源码的bash shell是最强大、最实用、可扩展性最好的 shell 之一。
This tip shows you how to use Bash scripting, shell arithmetic, and ImageMagick to create a pixel ruler.
本文介绍如何使用Bash脚本、shell算法和ImageMagick创建一个像素标尺。
When a command or the bash shell itself initiates (or spawns) a new shell sub-process to perform a task, it is known as forking.
命令或bash shell本身可能启动(或生成)新的shell子进程以执行某一任务,这称为forking。
By default you can use the cursor keys, and backspace, to move around and edit the input line, just like with the Bash shell.
可以缺省地使用光标和退格键来移动和编辑输入行,就象在Bash shell中一样。
Creating Bash shell scripts for function testing.
创建Bash shell脚本进行功能测试。
In such a case, the Bash shell suspends the process, so that it is no longer executing.
对于这种情况,Bash shell将暂停进程,从而使它停止执行。
The Bash shell is already installed and configured in your Linux system.
Bash shell脚本已经在Linux系统中安装和配置好了。
Please note that this is done in the bash shell, the default in most Linux distributions.
请注意,这是在bash shell(大多数Linux发行版的默认值)内完成的。
To use a function within your bash shell script, you use the methods shown in Listing 26.
要想在bash shell脚本中使用函数,可以使用清单26 所示的方法。
The output shows three running processes: an SSH login, which spawned a bash shell, which launched the ps command itself.
输出结果中显示了3个进程,分别是:一个ssh登录进程,它产生了一个bash Shell,而后者启动了ps命令。
GNU Bash shell: Find documentation and source for the GNU Bash shell on its project page.
GNUBash shell:在gnu Bash shell项目页面上找到它的文档和源码。
If you already know how to develop Bourne or Korn shell scripts, then you already know enough to start working with Bash shell scripts.
如果已经知道了如何开发Bourne或Kornshell脚本,那对于如何运用Bash shell脚本已经足够了。
Shell options typically vary from shell to shell, and a rich shell, such as Bash or Z shell, can have hundreds of tunable parameters.
shell选项通常因shell而异,功能丰富的shell(比如Bash或Z shell)可能有数百个可调整参数。
The Bourne Again Shell (bash) got its start in 1987, when it was written as a GNU project that many Linux distributions quickly adopted.
Bourne AgainShell (bash)诞生于1987年,是作为GNU项目开发的,许多Linux发行版很快就采用了它。
应用推荐