I suddenly decided I'd like to look at the source code for 'echo'
$ which echo
/usr/bin/echo
so
$ ls -al /usr/bin/echo
-rwxr-xr-x. 1 root root 32536 Oct 31 2016 /usr/bin/echo
so
$strings /usr/bin/echo
leads me to believe it's a compiled C program
Now I'm stuck.
How do I:
Find out which package it's in
Get the source
Rebuild it
Test it
Install the new version system-wide
(I know that 5's not a good idea, I'm just curious...)
I'm currently on Fedora, but I'd also be interested in the answers for Debian
A link to a relevant tutorial would be a good answer.
Edit:
$ type -a echo
echo is a shell builtin
echo is /usr/bin/echo
So I guess it's the one in /usr/bin/echo I'd like to see rather than trying to read the whole of bash.