Programming Tutorials

builtin in Mac OS X

By: Strauss K in macos Tutorials on 2011-02-03  

Execute the specified shell builtin, passing it arguments, and return its exit status.

      builtin shell-builtin [arguments]

This is useful when defining a function whose name is the same as a shell builtin, retaining the functionality of the builtin within the function. The cd builtin is commonly redefined this way.

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


$ builtin ls

builtin is a builtin command

Add Comment

* Required information


No comments yet. Be the first!

Most Viewed Articles (in macos )

Latest Articles (in macos)