Add some comments and replace get_post_args with load_post_args
This commit is contained in:
parent
ce23320a4d
commit
f87339e98b
5 changed files with 49 additions and 23 deletions
|
|
@ -1,6 +1,29 @@
|
|||
<pre>
|
||||
% env | escape_html
|
||||
---------------------
|
||||
% umask
|
||||
</pre>
|
||||
% if(! ~ $#debug_shell 0) {
|
||||
<form method="POST" name="prompt">
|
||||
<input type="text" name="command" />
|
||||
<input type="submit" Value="Run" />
|
||||
</form>
|
||||
<script language="javascript"><!--
|
||||
document.prompt.command.focus()
|
||||
//--></script>
|
||||
|
||||
%{
|
||||
fn evl {
|
||||
# Buffering is probably messing this up:
|
||||
#rc -c 'flag x +;{'^$post_arg_command'} |[2] awk ''{print ">> "$0}'''
|
||||
rc -c 'flag x +;'^$post_arg_command
|
||||
}
|
||||
if(! ~ $#post_arg_command 0 && ! ~ $#post_arg_command '') {
|
||||
echo '<hr /><pre>'
|
||||
evl | escape_html |[2] awk '{print "<b>"$0"</b>"}'
|
||||
echo '</pre>'
|
||||
}
|
||||
%}
|
||||
% }
|
||||
|
||||
<hr /><pre>
|
||||
% env | escape_html
|
||||
</pre><hr />
|
||||
|
||||
% umask
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue