Unix and Linux Discussions Tagged with shell scripts |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
32 |
323,324 |
Shell Programming and Scripting |
|
|
|
5 |
89,455 |
Shell Programming and Scripting |
|
|
|
5 |
83,968 |
Shell Programming and Scripting |
|
|
|
2 |
88,333 |
Shell Programming and Scripting |
|
|
|
2 |
87,097 |
Shell Programming and Scripting |
|
|
|
3 |
89,123 |
Shell Programming and Scripting |
|
|
|
10 |
134,441 |
Shell Programming and Scripting |
|
|
|
1 |
76,105 |
Shell Programming and Scripting |
|
|
|
5 |
84,488 |
Shell Programming and Scripting |
|
|
|
10 |
107,846 |
Shell Programming and Scripting |
|
|
|
3 |
93,333 |
Shell Programming and Scripting |
|
|
|
2 |
86,350 |
Shell Programming and Scripting |
|
|
|
10 |
116,486 |
Shell Programming and Scripting |
|
|
|
11 |
135,104 |
Shell Programming and Scripting |
|
|
|
2 |
84,808 |
Shell Programming and Scripting |
|
|
|
6 |
88,090 |
Shell Programming and Scripting |
|
|
|
5 |
64,011 |
Shell Programming and Scripting |
|
|
|
4 |
95,234 |
Shell Programming and Scripting |
|
|
|
2 |
83,623 |
Shell Programming and Scripting |
|
|
|
2 |
47,640 |
Shell Programming and Scripting |
|
|
|
3 |
65,637 |
Shell Programming and Scripting |
|
|
|
2 |
81,627 |
Shell Programming and Scripting |
|
|
|
17 |
200,914 |
Shell Programming and Scripting |
|
|
|
2 |
86,783 |
Shell Programming and Scripting |
|
|
|
5 |
92,485 |
Shell Programming and Scripting |
|
|
|
2 |
80,496 |
Shell Programming and Scripting |
|
|
|
2 |
76,321 |
Shell Programming and Scripting |
|
|
|
2 |
74,856 |
Shell Programming and Scripting |
|
|
|
2 |
78,832 |
Shell Programming and Scripting |
|
|
|
1 |
86,139 |
Shell Programming and Scripting |
|
|
|
3 |
70,232 |
Shell Programming and Scripting |
|
|
|
2 |
86,218 |
Shell Programming and Scripting |
|
|
|
4 |
72,916 |
Shell Programming and Scripting |
|
|
|
0 |
101,714 |
Shell Programming and Scripting |
|
|
|
5 |
57,500 |
Shell Programming and Scripting |
|
|
|
7 |
126,734 |
Shell Programming and Scripting |
|
|
|
9 |
140,847 |
Shell Programming and Scripting |
|
|
|
5 |
80,503 |
Shell Programming and Scripting |
|
|
|
3 |
93,759 |
Shell Programming and Scripting |
|
|
|
5 |
22,570 |
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