[Nix-dev] Re: [Nix-commits] SVN commit: nix - 15683 - MarcWeber -	nixos/branches/fix-style/etc
    Marc Weber 
    marco-oweber at gmx.de
       
    Thu May 21 16:48:46 CEST 2009
    
    
  
One example: If you source /etc/bashrc from zsh you'll get:
  nixos% source /etc/bashrc                                                                                          
  /etc/bashrc:37: no matches found: NIX_OTHER_STORES=/var/run/nix/remote-stores/*/nix
So how to fix this?
Use default zsh settings or change default behaviour? 
(eg by using setop NULLGLOB; setop NOCSH_NULLGLOB)
Maybe even do somethning like this (untested):
  loadbash_settings(){
    # tell zsh to use bash like behviour for this function only
    eval `cat /etc/bashrc`
  }
  loadbash_settings
  unset loadbash_settings
?
So what do you prefer?
Marc Weber
    
    
More information about the nix-dev
mailing list