source tarball for "echo"

Sep 26, 2004 5 Replies

can someone direct me to a site where i can find source code for the echo command(linux). i want to port the x86 version to my embedded device(mips architecture).



thanx tabrez


It's usually part of the shell (bash, ash, zsh), not a separate executable.

Rob

It's usually both:

$ type echo echo is a shell builtin $ file /bin/echo /bin/echo: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.5, dynamically linked (uses shared libs), stripped

Grant Edwards grante Yow! Hey, LOOK!! A pair of at SIZE 9 CAPRI PANTS!! They visi.com probably belong to SAMMY DAVIS, JR.!!

GNU/Linux 2.2.5, dynamically linked (uses shared libs), stripped

And on my FC2 system it comes with the coreutils rpm, so you could grab the SRPM from RedHat I guess.

Trevor Barton

Look also at a recent busybox busybox/echo.c

echo itself is easy to implement, the most complicated part is the parameter and option handling.

Regards Heinz

Hi, this is partof the GNU "sh-utils". ftp://ftp.gnu.org/gnu/sh-utils

G.

http://busker.org | http://www.clustervision.com

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required