Difference between revisions of "Syntax error: unexpected end of file"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
{{lc}} | {{lc}} | ||
+ | [[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 | ||
== See also == | == See also == |
Revision as of 06:30, 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
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: