Bug 164287 - ksh no longer works properly for "echo -e" (prints the -e)
Summary: ksh no longer works properly for "echo -e" (prints the -e)
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: ksh
Version: 4
Hardware: i686
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Karsten Hopp
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-07-26 15:58 UTC by John Fishman
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2005-09-07 13:59:06 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description John Fishman 2005-07-26 15:58:50 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.9) Gecko/20050711 Firefox/1.0.5

Description of problem:
$ ksh
$ echo "-e foo\c"
-e foo\c

$ type echo
echo is a shell builtin

ksh man page sez:

       echo [ arg ... ]
              When the first arg does not begin with a -, and none of  the argu-
              ments contain a \, then echo prints each of its argumentsseparated
              by a space and terminated by a new-line.  Otherwise,  the behavior
              of  echo  is  system  dependent and print or printf describedbelow
              should be used.  See echo(1) for usage and description.




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

How reproducible:
Always

Steps to Reproduce:
1. see Description above
2.
3.
  

Additional info:

Comment 1 Karsten Hopp 2005-09-07 13:59:06 UTC
Well, the first arg begins with a '-', therefore the behaviour of echo IS system
dependent. You'd better use either /bin/echo or the builtins print/printf.


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