这是indexloc提供的服务,不要输入任何密码
Skip to content

Translate set -- assignments as set argv #35

@Neved4

Description

@Neved4

In some scripts it's common to use the pseudo-array construct as a substitute for proper arrays when the shell lacks support for them:

set -- x y z

Currently that would make babelfish produce the exact same line, which will break.

Ideally, we'd be translating it to the equivalent:

set argv x y z

See: POSIX.1-2017: §2.15 Special Built-In Utilities

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions