Main Page | Namespace List | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

echotest.sh

Go to the documentation of this file.
00001  *
00002 /*!
00003  * @file ./echotest.sh
00004  *
00005  * @brief Generic replacement for <b><code>echo -n</code></b>
00006  *
00007  * This script include file contains the keyboard support
00008  * needed to derive proper functionality of shell command
00009  * <b><code>echo -n</code></b> for systems that do not have it.
00010  * This is useful in shell scripts when requesting user input
00011  * by way of a <b><code>read varname</code></b> command.
00012  * It should work on any flavor of BASH, Korn, and Bourne shells.
00013  * A stand-alone invocation does nothing, but is benign.
00014  *
00015  * Loaded where needed as:  <b><code>. ./echotest.sh</code></b>
00016  *
00017  * Invoke as:
00018  *<b><code>$echon "Print a line without a final newline$echoc"</code></b>
00019  *
00020  *
00021  * @section Control
00022  *
00023  * \$URL: https://svn.apache.org/path/name/echotest.sh $ \$Id: echotest.sh 0 09/28/2005 dlydick $
00024  *
00025  * Copyright 2005 The Apache Software Foundation
00026  * or its licensors, as applicable.
00027  *
00028  * Licensed under the Apache License, Version 2.0 ("the License");
00029  * you may not use this file except in compliance with the License.
00030  * You may obtain a copy of the License at
00031  *
00032  *     http://www.apache.org/licenses/LICENSE-2.0
00033  *
00034  * Unless required by applicable law or agreed to in writing,
00035  * software distributed under the License is distributed on an
00036  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
00037  * either express or implied.
00038  *
00039  * See the License for the specific language governing permissions
00040  * and limitations under the License.
00041  *
00042  * @version \$LastChangedRevision: 0 $
00043  *
00044  * @date \$LastChangedDate: 09/28/2005 $
00045  *
00046  * @author \$LastChangedBy: dlydick $
00047  *         Original code contributed by Daniel Lydick on 09/28/2005.
00048  *
00049  * @section Reference
00050  *
00051  */ /* 
00052  * (Use  #! and #/ with dox_filter.sh to fool Doxygen into
00053  * parsing this non-source text file for the documentation set.
00054  * Use the above open comment to force termination of parsing
00055  * since it is not a Doxygen-style 'C' comment.)
00056  *
00057  *
00058  *##################################################################
00059  *
00060  * Script setup:  Determine style of echo command w/o newline
00061  *
00062  * echo "echon: $echon"
00063  * echo "echoc: \\${echoc}"
00064  *##################################################################
00065  *
00066  * Done.  Use non-terminated $echon "text$echoc" from now on in
00067  * main script...
00068  *
00069  * EOF
00070 

Generated on Fri Sep 30 18:59:20 2005 by  doxygen 1.4.4