Open main menu
Home
Random
Log in
Settings
About Sugar Labs
Disclaimers
Sugar Labs
Search
Changes
← Older edit
Newer edit →
Template:Block
(view source)
Revision as of 01:03, 27 April 2010
25 bytes added
,
01:03, 27 April 2010
no edit summary
Line 7:
Line 7:
Used to display a block of code in an enlarged, monospace typeface within a gray block like the following:
Used to display a block of code in an enlarged, monospace typeface within a gray block like the following:
−
{{Block|
+
{{Block|#!/bin/bash -x
}}
−
#!/bin/bash -x
+
#
−
#
+
# The -x above and the export PS4 (debug prompt) assignment below will help in debugging
−
# The -x above and the export PS4 (debug prompt) assignment below will help in debugging
+
# long scripts by reporting the line number : script : effective userid : function names
−
# long scripts by reporting the line number : script : effective userid : function names
+
# to the standard output by through the environment variables.
−
# to the standard output by through the environment variables.
+
#
−
#
+
#
−
+
export PS4='+(${LINENO}:${BASH_SOURCE}:${EUID}): ${FUNCNAME[0]:+${FUNCNAME[0]}(): }'
−
export PS4='+(${LINENO}:${BASH_SOURCE}:${EUID}): ${FUNCNAME[0]:+${FUNCNAME[0]}(): }'
+
#
−
+
# script code to follow.
−
# script code to follow.
}}
}}
See also [[:Template:Code]] for {{Code|code lines or words}}.
See also [[:Template:Code]] for {{Code|code lines or words}}.
+
</noinclude>
Patrol
Bots
,
Bureaucrats
,
Administrators
123
edits