Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: multiple OSes



On Thu, 1 Nov 2007, Stephane Chazelas wrote:

[[ $OSTYPE = solaris* ]]
==============

cool, i forgot about that.


case $OSTYPE in
 (solaris*) ...
 ;;
 (*) ...
 ;;
esac
================

at some point i'll have a case statement. i'm not there yet.


Also I think you meant
PATH=$PATH:/usr/ucb:${HOME}/bin:

Also, if you'd like Solaris to behave in a more Unixy way, you
could add the Unix PATH in front:

PATH=$(command -p getconf PATH):$PATH:/usr/ucb:${HOME}/bin:

(that might break some scripts though).
==================

good stuff.


also, i've got this in my ~/.zshrc:
  alias rm="rm -i" # safety first!
which causes a problem on solaris... instead of:
	rm -rf /junk
i have to do this:
	command rm -rf /junk

is there a better way to assign that alias to rm if i'm on solaris?
[...]

zmodload -i zsh/files &&
 disable chown chgrp ln mkdir mv rmdir sync
=================

very cool! thanks!


--
        ...atom

 ________________________
 http://atom.smasher.org/
 762A 3B98 A3C3 96C9 C6B7 582A B88D 52E4 D9F5 7808
 -------------------------------------------------

	"The livestock sector is a major player [in climate
	 change], responsible for 18% of greenhouse gas
	 emissions measured in CO2 equivalent. This is a higher
	 share than transport."
		-- Livestock's long shadow, 2006
		UN report sponsored by WTO, EU, AS-AID, FAO, et al




Messages sorted by: Reverse Date, Date, Thread, Author