X-Git-Url: http://git.tuebingen.mpg.de/?p=gsu.git;a=blobdiff_plain;f=funcs%2Fgsu;h=221aad6c332ff4c370cd0c1500f3c44503af990e;hp=8c5748ed95756412c189cc978db37ebdfe4f1e24;hb=206631d696603d28576e927e9c6a12c1acdca280;hpb=3683ec6fde4e579fa227346b426ce6dca5d75542 diff --git a/funcs/gsu b/funcs/gsu index 8c5748e..221aad6 100644 --- a/funcs/gsu +++ b/funcs/gsu @@ -1,4 +1,3 @@ -#!/bin/bash # gsu -- the global subcommand utility # (C) 2006-2007 Andre Noll @@ -10,8 +9,7 @@ E_GSU_BAD_COMMAND invalid command E_GSU_NOT_A_NUMBER not a number $gsu_errors " - local a b i - local i=0 + local a b i=0 while read a b; do if test -z "$a"; then continue @@ -120,11 +118,11 @@ com_help() | sed -e 's/^com_\([a-zA-Z_0-9]\+\)()#*/\1\t/' \ | sort \ | while read a b; do - echo -en "$a\t" - if test ${#a} -lt 8; then - echo -en "\t" - fi - echo "$b" + printf "$a\t" + if test ${#a} -lt 8; then + printf "\t" + fi + echo "$b" done echo gsu_msg "Try $gsu_self help for info on ."