Annotation of ircnowd/src/testsuite/functions.inc, Revision 1.1.1.1
1.1 tomglok 1: #!/bin/sh
2: #
3: # ngIRCd Test Suite
4: # Copyright (c)2002-2004 by Alexander Barton (alex@barton.de)
5: #
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.
11: #
12: # $Id: functions.inc,v 1.1 2004/09/06 22:04:06 alex Exp $
13: #
14:
15: # test how to call echo to get output without newline
16: echo -n | grep -- -n >/dev/null 2>&1
17: if [ $? -eq 0 ]; then
18: ECHO_N=""; ECHO_C="\c"
19: else
20: ECHO_N="-n"; ECHO_C=""
21: fi
22:
23: echo_n()
24: {
25: echo $ECHO_N "$*$ECHO_C"
26: }
27:
28: # -eof-
CVSweb