DEV Community

Discussion on: Which mainstream programming language has the ugliest syntax?

Collapse
 
david_j_eddy profile image
David J Eddy

Does BASH count? :|

if [! -d './directory']; then
  echo 'nope'
else
  echo 'yep'
fi
Enter fullscreen mode Exit fullscreen mode

:|

Collapse
 
casperbraske profile image
Luis

It's beautiful, IMO. <3

Collapse
 
ben profile image
Ben Halpern

Bash counts!

Collapse
 
dserodio profile image
Daniel Serodio

IMHO the worst bash quirk is not being able to put whitespace around the assignment operator, ie.:


foo = bar # syntax error
foo=bar # works as expected

Collapse
 
moopet profile image
Ben Sinclair

*cough* set -o to turn an option on and set +o to turn it off *cough*

Collapse
 
elmuerte profile image
Michiel Hendriks

That would be Bourne Shell's fault, not BASH.