Difference between revisions of "Syntax error: unexpected end of file"
Jump to navigation
Jump to search
Line 6: | Line 6: | ||
Solution: add ";" at the end of your line of code | Solution: add ";" at the end of your line of code | ||
https://stackoverflow.com/questions/38595559/how-to-define-a-function-on-one-line | https://stackoverflow.com/questions/38595559/how-to-define-a-function-on-one-line | ||
+ | |||
+ | == Related == | ||
+ | * [[Bash shell functions]] | ||
== See also == | == See also == |
Revision as of 06:32, 20 July 2022
How to define in Bash a function on 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
See also
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: