Skip to content

Minor flaws on bash/ksh code generation (w.r.t. CASE elements) #1222

@codemanyak

Description

@codemanyak

There are two (minor) flaws on generation shell code for CASE elements:

  • The indentation of non-default CASE branches is one level too deep (this has not been noticed so far simply because the indentation was so minute - just one blank character! - but will be increased with version 3.32-33 to four blanks per level):
    Image

  • If a CASE element is disabled then all branches get a superfluous (though also outcommented) ":" line - this is because the generator detects that the branch does not contain any substantial code and tries to mend it by inserting a noop instruction, not realising that this is completely unnecssary in a disabled context:
    Image

Metadata

Metadata

Assignees

Labels

FixedImplemented (though possibly still not delivered)inconvenient

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions