๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #36355

Re: Tin configuration questions

#36355
From: bomr
Date: Tue, 30 Sep 1997 00:00
109 lines
4587 bytes
Urs Jan๏ฟฝen <urs@tin.org> wrote:
>In <60q0j5$u2$1@nntp.ucs.ubc.ca>,
>    bomr@triumf.ca wrote:
>> Okay, I've got my real full name in /etc/password, I've got
>> an environment variable called NAME set to my full name, and
>> I've got a shell variable called NAME set to my full name.  The
>> version 1.2PL2 version on this computer seems to find my full 
>> name okay, from somewhere.  What gives?

>*shrug*

>if mail_address is unset $NAME is taken for the fullname part of
>From:, if $NAME is unset $REALNAME is taken, if $REALNAME is unset
>gecos-filed of the passwd is taken. (see get_from_name()/
>get_full_name() in header.c)

>> TIN seems to think I am using sh for my shell, when in fact
>> it is tcsh.

>set default_shell_command (tinrc) to tcsh

Okay, this is contrary to my understanding of what goes
on when I use the '!' shell command.  Tell me if this
is what actually occurs:

1. User presses the '!' key.
2. Prompt appears, requesting a command, 
   with default from 'default_shell_command'
3. A shell, sh by default, is loaded, and given
   the command line supplied by the user.
4. The shell executes the command, and supplies
   stdout for the user to see, while tin waits
   for user to press RETURN.

Where my question comes from is how it decides whether
to use sh, or if there is another shell (tcsh in
my case) which it should load to execute the command.
Or have I got the scheme totally wrong?

>>  I find this out by escaping to the shell and doing 
>> a 'setenv'.  It says "sh: setenv: command not found".

>which says that you are using sh

Is it saying that *I* am using sh as my default shell
(I'm not), or that *it* wants to use sh?  If *it* wants to
use sh, how can I change it's mind?


>> Why might
>> it think I am using this shell?

>cause it's the default; sh is available on all unixe systems, tcsh is
>not.

>> There is an environment variable 
>> called SHELL with the value "/etc/tshrc".
>                               ^^^^^^^^^^
>are you shure that's what you want? $SHELL should point to a shell,
>not to a rcfile.

Oops, my mistake.  It actually says has the value "/bin/tcsh", not what
wrote the first time.

So, here is what I did find out:

The tcsh variable 'NAME' can hold the Full Name, and tin finds it.
In the 'NAME' environment variable, tin will not find it.  In the 
'NNTPSERVER' enviroment variable, I can put the i.p. of the (NNTP) news
server.

It seems to me, that using a different shell than it expects may
be causing some of my problems.  No?


>> I seem to be able to use the tinrc#mail_address method to set my
>> full name, but I would prefer to have a less syntax-fussy
>> method.  Ultimately this setup is to be released for general
>> consumption by people who don't want to hand-edit tinrc.

>ever tried the options 'M'enu?

True.  Point taken.


>> I realize this may be more of a UNIX question than a TIN question,
>> but then again, maybe not.  Thanks for your assistance.

>looks like it's a "how (mis)-configured is my system" question ,-)

I don't see any mis-configuration in the system (given that 
the only obvious error was my typo, here), unless the use of
an alternative shell is considered a mis-configuration.  I'm trying
understand how things are supposed to work, so I can make them work,
and there are cases where it isn't making a whole lot of sense.

Thank you for your patience.

	---   rod.

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 Rod Nussbaumer, Programmer/Technologist     Internet: bomr@triumf.ca  
 TRIUMF --- University of British Columbia,     Phone: (604)222-7449
 Vancouver, BC, Canada.                           FAX: (604)222-7307
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Technical Details
Message-ID: <60rqmf$6c8$3@nntp.ucs.ubc.ca>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
References: <60gp1m$qsn$1@nntp.ucs.ubc.ca> <60m397$o1c$1@nz12.rz.uni-karlsruhe.de> <60oq6r$4c4$1@nntp.ucs.ubc.ca> <60p3jk$m5u$1@nz12.rz.uni-karlsruhe.de> <60q0j5$u2$1@nntp.ucs.ubc.ca> <60r2ao$b52$2@nz12.rz.uni-karlsruhe.de>

Show Full Headers
Complete Article Headers
Message-ID: <60rqmf$6c8$3@nntp.ucs.ubc.ca>
Subject: Re: Tin configuration questions
Date: Tue, 30 Sep 1997 00:00:00 +0000
From: bomr@triumf.ca
References: <60gp1m$qsn$1@nntp.ucs.ubc.ca> <60m397$o1c$1@nz12.rz.uni-karlsruhe.de> <60oq6r$4c4$1@nntp.ucs.ubc.ca> <60p3jk$m5u$1@nz12.rz.uni-karlsruhe.de> <60q0j5$u2$1@nntp.ucs.ubc.ca> <60r2ao$b52$2@nz12.rz.uni-karlsruhe.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
X-Deja-AN: 276848399
Organization: TRIUMF, Canada's National MESON Research Facility
Newsgroups: news.software.readers