Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

That's an awesome idea. I'd love to try that one day.

Your command isn't valid because it's missing a control character after 'bar', such as ';'. Bash rejects it as well:

  $ bash -c "foo() { bar }"
  bash: -c: line 1: syntax error: unexpected end of file


Oops, you are right, that's what I get for testing on zsh :(




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: