echo -n
.
This script include file contains the keyboard support needed to derive proper functionality of shell command echo -n
for systems that do not have it. This is useful in shell scripts when requesting user input by way of a read varname
command. It should work on any flavor of BASH, Korn, and Bourne shells. A stand-alone invocation does nothing, but is benign.
Loaded where needed as: . ./echotest.sh
Invoke as: $echon "Print a line without a final newline$echoc"
Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
Licensed under the Apache License, Version 2.0 ("the License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and limitations under the License.
Definition in file echotest.sh.
Go to the source code of this file.