Red Hat Bugzilla – Bug 76393
Bad: problem in "echo"
Last modified: 2007-04-18 12:47:49 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020830
Description of problem:
Bad: I always use csh in my console. the program "echo" could use backslash
options (\t or \n) in RH7.3. I have installed RH8, and the command lines in my
csh scripts can not print a newline (\n) or a tab (\t). When i use tcsh, echo
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.echo "linux \n"
Actual Results: > linux \n
Expected Results: >linux
(one blank line)
This is a tcsh feature, not a csh feature. Why don't you use tcsh instead?
(Actually, they are the same executable, but apparently some csh-compatibility
options turn on if you invoke tcsh via csh.)
You can change the behavior by setting the echo_style variable.
Changing the default would break too many existing scripts,
as well as arbitrarily diverging from upstream.