syntax for env -u foo

Marius Gedminas marius at pov.lt
Fri Mar 16 21:04:50 UTC 2012


On Fri, Mar 16, 2012 at 07:31:46PM +0000, Thufir Hawat wrote:
> I want to remove rvm from my env, but cannot seem to.  I see syntax such 
> as:
> 
> env -u DISPLAY xclock
> 
> but it seems like the usual syntax is env -u foo;

It's 'env -u VARIABLE command-you-want-to-run-with-the-modified-env'.

> in any event, my 
> particulars:
> 
> thufir at caladan:~$ 
> thufir at caladan:~$ env | grep rvm
> rvm_bin_path=/home/thufir/.rvm/bin
> rvm_tar=tar
> rvm_path=/home/thufir/.rvm
> rvm_uname=Linux
> rvm_prefix=/home/thufir
> PATH=/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/
> usr/bin:/sbin:/bin:/usr/games:/home/thufir/.rvm/bin
> rvm_version=1.10.3
> 
> I've tried:
> 
> env -u rvm
> env -u rvm_bin_path

If you want to modify the environment of your shell session, use

  unset rvm
  unset rvm_bin_path

Marius Gedminas
-- 
Place mark here ->[ ]<- if you want a dirty monitor.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20120316/d0a2fe7c/attachment.pgp>


More information about the ubuntu-users mailing list