Peteris Krumins personal blog

Something about functions in Bash (2017)

Here's something you didn't know about bash functions. Usually when you write a function you do this: function name () { ... } Right? I know you do, because that's how everyone writes functions. Well, here's the thing. In bash { ... } doesn't mean "function's body" or "function's scope" as in JavaScript or C. It's...
Points
158
HN comments
102
Submissions
1
Cited by
0 commenters

Software EngineeringTools & Productivity2018

On Hacker News

SubmittedTitle on HNPointsComments
Jul 5, 2018Something about functions in Bash (2017) by okket158102

More from Peteris Krumins

All 57 posts →

Related posts from the same era