Difference between revisions of "Syntax error: unexpected end of file"
Jump to navigation
Jump to search
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{lc}} | {{lc}} | ||
+ | [[How to define Bash function in one line]] | ||
+ | |||
+ | |||
+ | Solution: add ";" at the end of your line of code | ||
+ | https://stackoverflow.com/questions/38595559/how-to-define-a-function-on-one-line | ||
+ | |||
+ | == Related == | ||
+ | * [[Bash shell functions]] | ||
== See also == | == See also == |
Latest revision as of 06:33, 20 July 2022
How to define Bash function in one line
Solution: add ";" at the end of your line of code https://stackoverflow.com/questions/38595559/how-to-define-a-function-on-one-line
Related[edit]
See also[edit]
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: