Skip to content

Instantly share code, notes, and snippets.

@d630
Last active June 17, 2016 13:20
Show Gist options
  • Save d630/e46f868aa364ed5caa078b78e2e7f443 to your computer and use it in GitHub Desktop.
Save d630/e46f868aa364ed5caa078b78e2e7f443 to your computer and use it in GitHub Desktop.
mksh: arithmetic compound command in function definition
fn() {
((1,1,1))
a=(f o o)
}
typeset -fp fn
@d630
Copy link
Author

d630 commented Jun 17, 2016

In MIRBSD KSH R52 2016/04/09 I get:

fn() {
    {
        \let] "1,1,1"
    }
    \set -A a -- f o o
}

@d630
Copy link
Author

d630 commented Jun 17, 2016

man mksh:

 let]   Internally used alias for let.

@d630
Copy link
Author

d630 commented Jun 17, 2016

but:

% alias let]
> let] alias not found

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment