i was trying to add a new command as bash builtin command. For example, currently ls command runs either from /bin/ls or /usr/bin/ls. So i want to add this ls as a bash built in command so even though ls is not present in /bin or /usr/bin it should execute, i.e bash program should have all the instructions to execute ls command
why is this a kernel question?
you can extend the PATH, use aliases or shell functions which search for a program or loop through the files, "echo *", busybox. tcsh has a builtin ls-F. you can even chroot to another installation.
Hey thanks for the reply at
Hey thanks for the reply at the same time my intention is to extend the bash functionality by adding new builtin functions to the bash source itself. aliases or shell functions will still run the binaries present in either /bin or /usr/bin. but i want to have an bash builtin command