[cmd]:"env edit" vs "env set",do we need both options for "env" command ??

Hi,
Are'nt "env edit" vs "env set" redundant ??. "env edit" allows modification of the environment variable value in the next line,whereas "env set" requires the mention of the environment variable value in the same line.
If the values for environment variables are not provided ,in either case they would be deleted.
Can we have only one of these commands ??.
A single line description for "set" sub-command of "env" with mention to that additional feature will provide better clarity.
Regards, Adarsh

Dear Adarsh Babu Kalepalli,
In message CAJgxa7dq+o4KnPMubf-aAeLYjfSpSCr3LF4L0fFSyX0NUxT29w@mail.gmail.com you wrote:
Are'nt "env edit" vs "env set" redundant ??.
No, they are not.
"env edit" allows modification of the environment variable value in the next line,whereas "env set" requires the mention of the environment variable value in the same line.
"env edit" is an _interactive_ command. You cannot use it in scripts, for example.
Can we have only one of these commands ??.
No, they serve very different purposes.
Best regards,
Wolfgang Denk
participants (2)
-
Adarsh Babu Kalepalli
-
Wolfgang Denk