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.

Syntax
 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.

Example

$ builtin ls

builtin is a builtin command




(追記) (追記ここまで)


Add Comment

JavaScript must be enabled for certain features to work
* Required information
1000

Comments

No comments yet. Be the first!
(追記) (追記ここまで)
(追記) (追記ここまで)

AltStyle によって変換されたページ (->オリジナル) /