Difference between revisions of "Exec"
Jump to navigation
Jump to search
↑ https://askubuntu.com/questions/525767/what-does-an-exec-command-do
Line 3: | Line 3: | ||
exec 3< YOUR_FILE_TO_READ | exec 3< YOUR_FILE_TO_READ | ||
+ | exec [[$SHELL]] | ||
<code>exec</code> in [[Bash]]<ref>https://askubuntu.com/questions/525767/what-does-an-exec-command-do</ref> | <code>exec</code> in [[Bash]]<ref>https://askubuntu.com/questions/525767/what-does-an-exec-command-do</ref> |
Revision as of 16:08, 17 June 2022
Open YOUR_FILE_TO_READ as file descriptor 3 for reading: exec 3< YOUR_FILE_TO_READ
exec $SHELL
Related commands
See also
flock
Bash [ -c ]
,alias
,&&
, Bash history, Autocompletion,set
,unset
,export
,.bash_aliases, .bashrc and .bash profile
,PS1
,echo
,brace expansion
, Function,shopt
,trap
,set -e
,source
,PATH
,complete
,disown
,.hushlogin
,.bashrc
,builtin
,eval
,set
,$PATH
,$HOME
,TZ
,.profile
,-e, -i
,Builtin (Bash)
,mapfile
,~
, return (Bash), for, until,declare, dirname, basename, functions.sh
, Bash arithmetic expansion,shift, bash --rcfile, readonly, $1, $@
Advertising: