Three flavors of UNIX: Linux, Solaris, IRIX... one NFS mounted home directory.
I'd like to ha开发者_StackOverflow中文版ve a (slightly) different .profile behavior based on the OS that I'm connecting to. I can hack something together, but I'd like to not re-invent the wheel if it's not necessary.
Is there a best practice for splitting out .profiles sections based on operating system?
#!/bin/sh
case `uname` in
Linux*)
...
esac
精彩评论