HomeFreeBSD

sh: Disallow empty simple commands.
rS254843Unpublished

Unpublished Commit ยท Learn More

No further details are available.

Description

sh: Disallow empty simple commands.

As per POSIX, a simple command must have at least one redirection,
assignment word or command word.

These occured in rare cases such as eval "f()" .

The extension of allowing no commands inside { }, if, while, for, etc.
remains.

Details

Provenance
jillesAuthored on
Parents
rS254842: Give (*ext_free) an int return value allowing for very sophisticated
Branches
Unknown
Tags
Unknown

Event Timeline