Unix and Linux Discussions Tagged with shell scripts |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
32 |
50,628 |
Shell Programming and Scripting |
|
|
|
5 |
9,095 |
Shell Programming and Scripting |
|
|
|
5 |
13,559 |
Shell Programming and Scripting |
|
|
|
2 |
8,362 |
Shell Programming and Scripting |
|
|
|
2 |
10,902 |
Shell Programming and Scripting |
|
|
|
3 |
11,116 |
Shell Programming and Scripting |
|
|
|
10 |
10,434 |
Shell Programming and Scripting |
|
|
|
1 |
7,858 |
Shell Programming and Scripting |
|
|
|
5 |
18,524 |
Shell Programming and Scripting |
|
|
|
10 |
10,572 |
Shell Programming and Scripting |
|
|
|
3 |
11,549 |
Shell Programming and Scripting |
|
|
|
2 |
6,965 |
Shell Programming and Scripting |
|
|
|
10 |
11,602 |
Shell Programming and Scripting |
|
|
|
11 |
11,990 |
Shell Programming and Scripting |
|
|
|
2 |
7,605 |
Shell Programming and Scripting |
|
|
|
6 |
6,951 |
Shell Programming and Scripting |
|
|
|
5 |
9,006 |
Shell Programming and Scripting |
|
|
|
4 |
8,606 |
Shell Programming and Scripting |
|
|
|
2 |
6,702 |
Shell Programming and Scripting |
|
|
|
2 |
8,402 |
Shell Programming and Scripting |
|
|
|
3 |
8,612 |
Shell Programming and Scripting |
|
|
|
2 |
6,478 |
Shell Programming and Scripting |
|
|
|
17 |
16,182 |
Shell Programming and Scripting |
|
|
|
2 |
7,315 |
Shell Programming and Scripting |
|
|
|
5 |
8,568 |
Shell Programming and Scripting |
|
|
|
2 |
10,426 |
Shell Programming and Scripting |
|
|
|
2 |
12,651 |
Shell Programming and Scripting |
|
|
|
2 |
10,657 |
Shell Programming and Scripting |
|
|
|
2 |
8,913 |
Shell Programming and Scripting |
|
|
|
1 |
10,084 |
Shell Programming and Scripting |
|
|
|
3 |
11,896 |
Shell Programming and Scripting |
|
|
|
2 |
13,824 |
Shell Programming and Scripting |
|
|
|
4 |
9,561 |
Shell Programming and Scripting |
|
|
|
0 |
24,511 |
Shell Programming and Scripting |
|
|
|
5 |
14,469 |
Shell Programming and Scripting |
|
|
|
7 |
14,961 |
Shell Programming and Scripting |
|
|
|
9 |
19,880 |
Shell Programming and Scripting |
|
|
|
5 |
13,927 |
Shell Programming and Scripting |
|
|
|
3 |
17,624 |
Shell Programming and Scripting |
|
|
|
5 |
9,819 |
Shell Programming and Scripting |
ATF-SH(1) BSD General Commands Manual ATF-SH(1)
NAME
atf-sh [-s shell] -- interpreter for shell-based test programs
SYNOPSIS
atf-sh script
DESCRIPTION
atf-sh is an interpreter that runs the test program given in script after loading the atf-sh(3) library.
atf-sh is not a real interpreter though: it is just a wrapper around the system-wide shell defined by ATF_SHELL. atf-sh executes the inter-
preter, loads the atf-sh(3) library and then runs the script. You must consider atf-sh to be a POSIX shell by default and thus should not
use any non-standard extensions.
The following options are available:
-s shell Specifies the shell to use instead of the value provided by ATF_SHELL.
ENVIRONMENT
ATF_LIBEXECDIR Overrides the builtin directory where atf-sh is located. Should not be overridden other than for testing purposes.
ATF_PKGDATADIR Overrides the builtin directory where libatf-sh.subr is located. Should not be overridden other than for testing purposes.
ATF_SHELL Path to the system shell to be used in the generated scripts. Scripts must not rely on this variable being set to select a
specific interpreter.
EXAMPLES
Scripts using atf-sh(3) should start with:
#! /usr/bin/env atf-sh
Alternatively, if you want to explicitly choose a shell interpreter, you cannot rely on env(1) to find atf-sh. Instead, you have to hardcode
the path to atf-sh in the script and then use the -s option afterwards as a single parameter:
#! /path/to/bin/atf-sh -s/bin/bash
ENVIRONMENT
ATF_SHELL Path to the system shell to be used in the generated scripts.
SEE ALSO
atf-sh(3)
BSD
September 27, 2014 BSD