开发者

NFS home / .profile / 3 flavors of UNIX : best practices?

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
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜