comparison rc/bash @ 253:e6de49d70fe7

(Not so) simplified solaris path add.
author Edho Arief <edho@myconan.net>
date Mon, 14 Nov 2011 11:06:47 +0300
parents 4fe8668e3ef0
children dde04581a2bf
comparison
equal deleted inserted replaced
252:4fe8668e3ef0 253:e6de49d70fe7
60 ;; 60 ;;
61 SunOS) 61 SunOS)
62 [ -x /usr/gnu/bin/rm ] && _has_rm_I=y 62 [ -x /usr/gnu/bin/rm ] && _has_rm_I=y
63 [ -x /usr/gnu/bin/ls ] && _has_gnu_ls=y 63 [ -x /usr/gnu/bin/ls ] && _has_gnu_ls=y
64 [ -x /usr/gnu/bin/grep ] && _has_gnu_grep=y 64 [ -x /usr/gnu/bin/grep ] && _has_gnu_grep=y
65 [ -d /opt/csw/bin ] && PATH="/opt/csw/bin:${PATH}" 65 # Higher priority directories
66 [ -d /opt/csw/sbin ] && PATH="/opt/csw/sbin:${PATH}" 66 for i in {/opt/csw,/usr/gnu}/{,s}bin; do
67 [ -d /usr/gnu/bin ] && PATH="/usr/gnu/bin:${PATH}" 67 [ -d "${i}" ] && PATH="${i}:${PATH}"
68 [ -d /usr/sfw/bin ] && PATH="${PATH}:/usr/sfw/bin" 68 done
69 [ -d /usr/xpg4/bin ] && PATH="${PATH}:/usr/xpg4/bin" 69 for i in /usr/{sfw,xpg4}/bin; do
70 export PATH 70 [ -d "${i}" ] && PATH="${PATH}:${i}"
71 done
71 alias ping="ping -s" 72 alias ping="ping -s"
72 alias ping6="ping -A inet6" 73 alias ping6="ping -A inet6"
73 ;; 74 ;;
74 FreeBSD) 75 FreeBSD)
75 _has_rm_I=y 76 _has_rm_I=y