Bug 76393 - Bad: problem in "echo"
Summary: Bad: problem in "echo"
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: tcsh
Version: 8.0
Hardware: i686
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Miloslav Trmač
QA Contact: Bill Huang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-10-21 09:34 UTC by Onur TAN
Modified: 2007-04-18 16:47 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-08-19 16:12:44 UTC
Embargoed:


Attachments (Terms of Use)

Description Onur TAN 2002-10-21 09:34:59 UTC
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
runs properly. 


Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1.echo "linux \n"
2.
3.
	

Actual Results:  > linux \n
>

Expected Results:  >linux
 (one blank line)
>

Additional info:

Comment 1 nessus 2002-12-13 23:34:52 UTC
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.)


Comment 2 Miloslav Trmač 2004-08-19 16:12:44 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.