Category: Bash Builtin

  • About bash builtin command named “eval”

    ABOUT eval eval is a builtin command of the Bash shell. It concatenates its arguments into a single string, joining the arguments with spaces, then executes that string as a bash command. It’s similar to running bash -c “string”, but eval executes the command in the current shell environment rather than creating a child shell […]

  • 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 […]

  • Look into bash builtin command named typeset

    $typeset -n gree=55 bash: typeset: 55′: invalid variable name for name reference $typeset -n 55=gree bash: typeset:55=gree’: not a valid identifier$typeset -n gree=pwd$echo $gree $echo $pwd $typeset -n vary=$?bash: typeset: `0′: invalid variable name for name reference$typeset vary=$?$echo $vary1$echo $vary1$echo $?0$echo $vary1$echo varyvary$echo $vary1$echo $vary1$echo $?0$typeset vary=$?$echo $vary0$ $typeset hello $echo $hello $echo $? 0 […]

  • How to use dirs, pushd and popd commands ?

    $pushd upstream-kernel/ ~/upstream-kernel ~ $pwd /home/jeffrin/upstream-kernel $cd .. $pushd temp/ ~/temp ~ ~ $dirs ~/temp ~ ~ $dirs -l /home/jeffrin/temp /home/jeffrin /home/jeffrin $pwd /home/jeffrin/temp $pushd ../upstream-kernel/ ~/upstream-kernel ~/temp ~ ~ $dirs -l /home/jeffrin/upstream-kernel /home/jeffrin/temp /home/jeffrin /home/jeffrin $pushd ../testing/ ~/testing ~/upstream-kernel ~/temp ~ ~ $dirs -l /home/jeffrin/testing /home/jeffrin/upstream-kernel /home/jeffrin/temp /home/jeffrin /home/jeffrin $popd ~/upstream-kernel ~/temp ~ ~ […]

  • compgen builtin command exposure

    ABOUT compgen compgen is bash built-in command and it will show all available commands, aliases, and functions for you. TYPICAL COMMANDLINE EXPOSURE RELATED [bash] $compgen -k if then else elif fi case esac for select while until do done in function time { } ! [[ ]] coproc $ $compgen -a ls $ $compgen -b […]

  • 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 $