Re: starting window managers that need /usr/local/bin
Re: starting window managers that need /usr/local/bin
- Subject: Re: starting window managers that need /usr/local/bin
- From: Randy Ford <email@hidden>
- Date: Fri, 14 Feb 2003 20:04:03 -0600
On Friday, February 14, 2003, at 12:29 PM, Sean Ahern wrote:
Randy Ford wrote:
The first line in my ~/.xinitrc is as follows:
#!/bin/sh
That forces the script to be interpreted by the POSIX shell, not bash.
Bash is intended to be a full implementation of the IEEE POSIX shell
and
its programming language is compatible with the Bourne shell. Are we
just
splitting hairs here?
No, it makes a difference. /bin/sh and /bin/bash behave differently.
Most of the shells are supersets of the Bourne shell, including Korn,
BASH, and the POSIX shell. However, there are differences. The Bourne
and POSIX shells do not have all of the interactive features that the
BASH and Korn shells have. They are intended to be quicker for scripts.
Another difference is in the startup files that they use. A login
POSIX shell will not source a ~/.bash_profile; it will only source the
~/.profile. I have a ~/.profile for the programs that use the POSIX or
Bourne shell; I source it into my ~/.bash_profile that has BASH-only
commands. I've had poorly behaved programs in the past launch
sub-shells using /bin/sh even though my default shell was different
(/bin/ksh or /bin/bash.) I try to have my bases covered.
On MacOS X, /bin/sh and /bin/bash are copies of the same code. (I
don't know why they didn't hard-link them to save disk and memory
space. /bin/csh and /bin/tcsh are also copies of each other.)
However, the program behaves differently depending on how it is invoked.
randy.
--
sh; be veewy, veewy quiet; I'm hunting hares.
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/x11-users
X11 for Mac OS X FAQ: http://developer.apple.com/qa/qa2001/qa1232.html
Report issues, request features, feedback: http://developer.apple.com/bugreporter
Do not post admin requests to the list. They will be ignored.