Skip to content

Complementary Linter / Static Analysis #478

@andychu

Description

@andychu

This bug is for brainstorming.

  • A script must pass bin/osh -O all:oil -n foo.sh first. That fixes some low hanging fruit.
  • shopt -s all:oil allows BOTH styles of conditionals now: do done / then else fi, or { }.
    • The translation tool can normalize them all to { }
  • pushd / popd -> cd with block
  • set -> builtin set or maybe shopt
  • warn about old-style assignments. Just assume no dynamic scope?
  • translate short opts to long opts
  • also see:
    • shopt -s no_old_builtins no_old_syntax. Some simple filters can be built into the interpreter?
    • it makes it more likely to stay clean over time ...

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions