Re: Default list of exported variables in sh(1) - $HOSTNAME

2008-12-29 Thread Brian A. Seklecki
On Mon, 2008-12-29 at 12:05 -0900, Mel wrote: > > > I may be better off using getenv() in PHP directly. > > For portability yes, since it doesn't rely on EGPCS, but otherwise > they give the same results. Another option would be to pay the PHP people to add POSIX 1003.1-2001 gethostname(2). I'l

Re: Default list of exported variables in sh(1) - $HOSTNAME

2008-12-29 Thread Mel
On Monday 29 December 2008 11:12:33 Brian A. Seklecki wrote: > > > SSH_CONNECTION > > > FTP_PASSIVE_MODE > > > EDITOR > > > > I suspect linux to set them from .profile files (even /etc/profile) and > > not hardcoded in a shell or login program. The default skeletons > > Mel: > > You were right to

Re: Default list of exported variables in sh(1) - $HOSTNAME

2008-12-29 Thread Brian A. Seklecki
> > SSH_CONNECTION > > FTP_PASSIVE_MODE > > EDITOR > > I suspect linux to set them from .profile files (even /etc/profile) and not > hardcoded in a shell or login program. The default skeletons Mel: You were right to some extent. However, the problem is more complicated (or less complicated

Re: Default list of exported variables in sh(1) - $HOSTNAME

2008-12-27 Thread Mel
On Wednesday 24 December 2008 10:22:34 Brian A. Seklecki wrote: > All: > > I've got a fun problem ... > > I'm having trouble tracking down where the default list of exported > variables is set for sh(1). > > I've got a piece of PHP code that runs on GNU/Linux but not FreeBSD > because (I think) $HO