HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by eof | Hacker News Reader
Parent
Full thread
eof
·
that's easier to remember than 'weather' for getting the weather?
View on HN
tomswartz07
·
`function weather() { curl "
http://wttr.in/$1
";}`
Not sure why it needs to be more complicated than that.
aaronchall
·
the function keyword is unnecessary - removing it makes the function creation more cross-compatible with different shells.
Reply on news.ycombinator.com