-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathREADME.txt
More file actions
34 lines (23 loc) · 1.39 KB
/
Copy pathREADME.txt
File metadata and controls
34 lines (23 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
---- print-arguments-wrapper.sh version 2.02 ----
When writing complex shell scripts, sometimes you wonder if a particular process is getting the right
arguments and the right environment variables. Just prefix a command with the name of this script,
and it will dump all arguments and environment variables to the console before starting the child process.
Syntax:
print-arguments-wrapper.sh <options...> command <command arguments...>
Options:
--help displays this help text
--version displays the tool's version number (currently 2.01)
--license prints license information
Usage examples
./print-arguments-wrapper.sh echo "test"
Caveat: Some shell magic may be lost in the way. Consider the following example:
./print-arguments-wrapper.sh ls -la
Command 'ls' may be actually be an internal shell function or an alias to 'ls --color=auto',
but that will not be taken into consideration any more when using this wrapper script.
For example, the external /bin/echo tool will be executed instead of the shell built-in version.
Exit status: Same as the command executed.
Feedback: Please send feedback to rdiezmail-tools at yahoo.de
---- program-argument-printer.pl ----
This script is no wrapper (it does not run the command) like print-arguments-wrapper.sh .
It just prints the arguments and all environment variables it received, together with
some other user-account information, and quits.