X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=command_util.sh;h=822cad2af5a74037867e95d5613c27e8eb56f2ee;hp=62a406c72778bf10cd7f7889b288a9a786448a7f;hb=35726e230f83270ef01000fc57328101a8b0d89f;hpb=03273d73589ffd1bd34ae2c25bdb66c6ae44fa64;ds=sidebyside diff --git a/command_util.sh b/command_util.sh index 62a406c7..822cad2a 100755 --- a/command_util.sh +++ b/command_util.sh @@ -161,7 +161,7 @@ dump_man() echo ".fi" fi echo - echo "$help_txt" + echo "$help_txt" | sed -e 's/^ //' echo if test -n "$perms_txt"; then echo -n "\\fBpermissions:\\fP " @@ -241,7 +241,7 @@ dump_array_member() echo ".description = \"$desc_txt\"," echo ".usage = \"$usage_txt\"," echo ".help = " - echo "$help_txt" | sed -e 's/^/\"/g' -e 's/$/\\n\"/g' + printf "%s\n" "$help_txt" | sed -e 's/^/\"/g' -e 's/$/\\n\"/g' echo '},' } @@ -263,7 +263,7 @@ template_loop() perms_txt=$(echo $t_perms | $sed_cmd) desc_txt=$(echo $t_desc | $sed_cmd) usage_txt=$(echo $t_usage | $sed_cmd) - help_txt=$(echo $t_help | $sed_cmd) + help_txt=$(printf "%s" "$t_help" | $sed_cmd) prototype=$(echo "$template_prototype" | $sed_cmd) $1 done