In Ksh, echo hello world
and print hello world
will return the same output (hello world). What is the difference between these text processing commands with respect to the Korn Shell?
I know how they work in BaSH, Cshell, and tcsh.
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.
Sign up to join this communityIn Ksh, echo hello world
and print hello world
will return the same output (hello world). What is the difference between these text processing commands with respect to the Korn Shell?
I know how they work in BaSH, Cshell, and tcsh.
III. SHELL PROGRAMMING QUESTIONS
[...]
Q12. Why does [ksh] have print since echo already exists [and] is widely used?A12. The behavior of echo varies from system to system. The POSIX standard does not define the behavior of echo when the first argument beings with a - or when any argument contains a \ character. This makes echo pretty useless for use in portable scripts.