help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-bash] The difference between 'if cond; then' and 'cond && {'


From: Peng Yu
Subject: [Help-bash] The difference between 'if cond; then' and 'cond && {'
Date: Sun, 2 Dec 2018 21:40:42 -0600

It sounds like the following construct would always produce the same
result. Is it so?

if some_cond; then
  do something1
  do something2
fi

somc_cond && {
  do something1
  do something2
}

-- 
Regards,
Peng



reply via email to

[Prev in Thread] Current Thread [Next in Thread]