"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/argbash-init.m4" between
argbash-2.9.0.tar.gz and argbash-2.10.0.tar.gz

About: argbash is a bash code generator that can assist you in writing scripts that accept arguments.

argbash-init.m4  (argbash-2.9.0):argbash-init.m4  (argbash-2.10.0)
skipping to change at line 199 skipping to change at line 199
do_stuff() do_stuff()
{ {
do_header "$1" do_header "$1"
do_args do_args
do_args_footer do_args_footer
test "$_arg_separate" = 0 && do_body_protected test "$_arg_separate" = 0 && do_body_protected
} }
outfname="$_arg_output" outfname="$_arg_output"
# we canonicize the empty string input to output filename to the dash
test -n "$outfname" || outfname='-'
test "$outfname" = "-" -a "$_arg_separate" -gt 0 && die "If you want to separate parsing and script body, you have to specify the outname, stdout doesn't work." test "$outfname" = "-" -a "$_arg_separate" -gt 0 && die "If you want to separate parsing and script body, you have to specify the outname, stdout doesn't work."
if test "$outfname" = '-' if test "$outfname" = '-'
then then
do_stuff 'script' do_stuff 'script'
else else
if test "$_arg_separate" = 0 if test "$_arg_separate" = 0
then then
do_stuff 'script' > "$outfname" do_stuff 'script' > "$outfname"
else else
 End of changes. 1 change blocks. 
0 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)