From: Wolfgang Denk Date: Fri, 29 Jun 2018 13:03:25 +0200 Subject: [U-Boot] [PATCH v5 4/5] cmd: nvedit: env import can now import only variables passed as parameters In-Reply-To: <322e6866c43f4515240ddca9456ee390b6f334c7.1530257385.git-series.quentin.schulz@bootlin.com> References: <322e6866c43f4515240ddca9456ee390b6f334c7.1530257385.git-series.quentin.schulz@bootlin.com> Message-ID: <20180629110325.2C96E240042@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Quentin, In message <322e6866c43f4515240ddca9456ee390b6f334c7.1530257385.git-series.quentin.schulz@bootlin.com> you wrote: > While the `env export` can take as parameters variables to be exported, > `env import` does not have such a mechanism of variable selection. > > Let's add the ability to add parameters at the end of the command for > variables to be imported. Thanks! > If a variable exists in the current env but not in the imported env, if > this variable is passed as a parameter to env import, the variable will > be unset. I suggest that this isNOT the default behaviour. I think most peaople would expect that this command only adds/replaces environment settings, so omitting one value should not cause unexpected behaviour. But I agree that such behaviour may also be conveniend - I suggest that we use an additional option ("-d" ?) to avtiavte it explicitly. Thanks. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de We want to create puppets that pull their own strings. - Ann Marion