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
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
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.
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.
Have something to add? Share your thoughts — no account required.
Ask the community — no account required