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
_______________________________________________
nix-dev mailing list
nix-dev@cs.uu.nl
https://mail.cs.uu.nl/mailman/listinfo/nix-dev

Reply via email to