Reputation
Next privilege 125 Rep.
Vote down
Badges
1 1
Newest
 Enthusiast
Impact
0 people reached

  • 0 posts edited
  • 0 helpful flags
  • 1 vote cast
Feb
5
comment Best practice to use $? in bash?
@ShawnJ.Goff I prefer to do command && true. Like that the return value is not changed.
Feb
5
comment Best practice to use $? in bash?
This is part of POSIX, not a bash specific feature. Use it but be aware of some pitfalls mywiki.wooledge.org/BashFAQ/105
Jan
29
awarded  Enthusiast
Oct
27
awarded  Supporter