Re: [Solved] Re: Difficulty with a shell function.
On Mon 26 Jan 2026 at 08:02:34 (+0100), tomas@tuxteam.de wrote:
> Another suggestion, more aesthetic: the semicolons at the end of
> the lines are unnecessary. You only need one when putting two
> lines together (as a replacement for a newline). For a reader of
> your script they are confusing.
I agree with the aesthetics, but readers might as well get used to
at least /seeing/ them, as type-ing a function adds them back in.
> (A place where you might see it is in the construction
>
> if <condition> ; then
> do this
> ...
>
> But you already separated the "if" and "then" by a newline, which
> is perfectly fine, too.
And as it happens, type will turn:
if <condition>
then
into:
if <condition>; then
anyway. Ah well.
Cheers,
David.
Reply to: