Greg Wooledge wrote:
On Wed, Apr 04, 2012 at 04:08:04PM -0700, Linda Walsh wrote:
function ll { ... }
Just for the record, a one-line function definition requires a ; before
the closing curly brace.
ll() { ls -l "$@";}
---
Can you say 'irrelevant detail'?
I was discussing an idea -- not focusing on details of syntax.
Are you also correcting people's spelling -- "for the record"?
If this was to be a reference for a record -- an audience I didn't write
for, then you screwed up. It is not true that you must have a semicolon
before the closing curly brace. An ampersand will do just as well if one
wants to use such.