4 # Copyright (c)2002-2004 by Alexander Barton (alex@barton.de)
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2 of the License, or
9 # (at your option) any later version.
10 # Please read the file COPYING, README and AUTHORS for more information.
12 # $Id: functions.inc,v 1.1 2004/09/06 22:04:06 alex Exp $
15 # test how to call echo to get output without newline
16 echo -n | grep -- -n >/dev/null 2>&1
18 ECHO_N=""; ECHO_C="\c"
20 ECHO_N="-n"; ECHO_C=""
25 echo $ECHO_N "$*$ECHO_C"