source: to-imperative/trunk/config.functions @ 2

Last change on this file since 2 was 2, checked in by pooh, 22 years ago

Initial revision

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 309 bytes
Line 
1#!/bin/sh
2
3config_functions=1
4
5if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
6  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
7    ac_n= ac_c='
8' ac_t='        '
9  else
10    ac_n=-n ac_c= ac_t=
11  fi
12else
13  ac_n= ac_c='\c' ac_t=
14fi
15
16echon ()
17{
18  echo $ac_n "$*"$ac_c
19}
20
Note: See TracBrowser for help on using the repository browser.