Tag: builtin

  • Sessions of bash builtin command named “times”

    ABOUT times Print the accumulated user and system times for the shell and for processes run from the shell [bash] $times 0m0.063s 0m0.024s 0m0.008s 0m0.012s $times pin 0m0.064s 0m0.025s 0m0.008s 0m0.012s $times ping 0m0.065s 0m0.025s 0m0.008s 0m0.012s $times –help times: times Display process times. Prints the accumulated user and system times for the shell and […]

  • Fundamentals related to a bash builtin command named “test”

    ABOUT test test provides no output, but returns 0 for “true” (test successful) and 1 for “false” (test failed). RELATED COMMAND LINE EXPOSURE [bash] $num=10; if (test $num -gt 5); then echo "yes"; else echo "no"; fi yes $num=1; if (test $num -gt 5); then echo "yes"; else echo "no"; fi no $num=5; if (test […]

  • Fundamentals related to bash builtin command named “shift”

    ABOUT shift shift [n] The positional parameters from n+1 … are renamed to $1 …. Parameters represented by the numbers $# down to $#-n+1 are unset. n must be a non-negative number less than or equal to $#. If n is 0, no parameters are changed. If n is not given, it is assumed to […]

  • How to use bash builtin command named “readonly” ?

    ABOUT readonly Marks name specified by Name parameter as read-only. TYPICAL COMMANDLINE SESSION [bash] $a=1 $a=2 $echo $a 2 $readonly a $a=1 bash: a: readonly variable $echo $a 2 $a=2 bash: a: readonly variable $ [/bash] LINK https://www.ibm.com/support/knowledgecenter/ssw_aix_72/com.ibm.aix.osdevice/bourne_shell_builtin_cmd_list.htm

  • A bash builtin command named “enable” to enable or disable a bash builtin command

    [bash light=”true”] $command $echo $? 0 $enable -n command $command bash: command: command not found $echo $? 127 $enable command $command $enable -n enable $enable bash: enable: command not found $ [/bash] RELATED SOURCE CODE EXPOSURE [c light=”true”] /* Enable/disable shell commands present in LIST. If list is not specified, then print out a list […]

  • bash builtin command named command

    $pwd /home/jeffrin/upstream-kernel $tail ~/.bashrc . /usr/share/bash-completion/bash_completion elif [ -f /etc/bash_completion ]; then . /etc/bash_completion fi fi export PS1=$ function ls { pwd } $ls /home/jeffrin/upstream-kernel $command ls 0002-Testing-script-for-Intel-P-State-driver-crashes-duri.patch linux linux-kselftest linux-kselftest.bup linux-kselftest.bup2 linux-next linux.old $

  • the need of a command named “builtin”

    $builtin echo jeffrin jeffrin $echo jeffrin jeffrin $echo() { echo “hi”; }; $echo jeffrin ^C $builtin echo jeffrin jeffrin $echo jeffrin ^C $ https://en.wikipedia.org/wiki/Shell_builtin http://unix.stackexchange.com/questions/11454/what-is-the- difference-between-a-builtin-command-and-one-that-is-not (jeffrin) what is the use of the command named “builtin” (jeffrin) llua : hello (llua) to avoid a possible wrapper