[ale] Anyone want to crtique a shell script?
Leam Hall
leamhall at gmail.com
Sun Apr 12 20:37:02 EDT 2015
On 04/12/15 20:31, Alex Carver wrote:
> On 2015-04-12 16:36, Leam Hall wrote:
>> On 04/11/15 18:37, Alex Carver wrote:
>>> First, a lot of your statements are missing semicolons. You'll need
>>> those or bash will complain.
>>
>> Haven't seen it choke yet. Do you see any edge cases I'm not thinking
>> about?
>
> Usually it starts to show up when control structures are nested. You
> can end up with a case where the control structure follows an undesired
> logic flow. I just do it explicitly so I don't have to think about
> introducing possible hierarchical errors and others can read it later.
That makes sense. I used to use them all the time and then started
playing with Python and Ruby. Lost the habit. I really prefer
semi-colons to:
end
end
end
end
end
More information about the Ale
mailing list