John Hardin wrote: > Ian Zimmerman wrote: > > John Hardin wrote: > > > > alias sa-update='env http_proxy=http://myserver:myport/ > > > > https_proxy=http://myserver:myport/ sa-update' > > > > > > Lose the "env"? > > > > Why? Apart from using an extra process, this should work exactly the same. > > {reads man page} Ah, I wasn't aware env did that, I thought it was just a > dump utility (or, at least, that's the only way I've ever used it). I'm used > to just prepending local env sets before the command.
I will just jump in her long enough to say that using 'env' like that is the idiomatic way to avoid differences in shells between sh and csh (and therefore between bash, dash, posh, ash, ksh, mksh, zsh, and I think you get the idea). It is a way to guarentee the ability to set variables regardless of shell. This make documenting things easier. Bob