You're replying to a comment by Ronaldo Ferreira de Lima.

September 07, 2014, 14:12

This also works ash, ksh, tcsh and zsh. Probably works in all sh-compatible shells.

I found an explanation in the ash's documentation:

Simple Commands
If a simple command has been recognized, the shell performs the following actions:

1. Leading words of the form ``name=value'' are stripped off and assigned to the environment of the simple command. Redirection operators and their arguments (as described below) are stripped off and saved for processing.

2. The remaining words are expanded as described in the section called ``Expansions'', and the first remaining word is consid- ered the command name and the command is located. The remain- ing words are considered the arguments of the command. If no command name resulted, then the ``name=value'' variable assignments recognized in item 1 affect the current shell.

3. Redirections are performed as described in the next section.

Reply To This Comment

(why do I need your e-mail?)

(Your twitter handle, if you have one.)

Type the word "security_418": (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.