builtin

Run a shell builtin, passing it args, and return its exit status.

Syntax : 

builtin [shell-builtin [args]]

This is useful when defining a shell function with the same name as a shell builtin, retaining the functionality of the builtin within the function.

For example, to write a function to replace `cd' that writes the hostname and current directory to an xterm title bar:

cd() {
    builtin cd "$@" && xtitle "$HOST: $PWD"
}

The return status is non-zero if shell-builtin is not a shell builtin command.


Loading ...

Related Results :

  1. Installing PHP in Linux
  2. Linux Basics
  3. SCP and SSH Remote Linux
  4. Create your own commands in linux
  5. bind bash
  6. builtin
Note :
  • Related Posts are generally User Blog posts.
  • or Other tutorials from other networks of w3clan.com.
  • Any registered user can create related posts based on search term tags.

About the Author