HDTenEightyP/NetNews huggingface dataset:
From: daf@netcom.com (Douglas Forman)
Subject: Running a script with execute only permission?
Date: Mon, 13 Apr 92 16:55:34 GMT
Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
Followup-To: comp.unix.shell

I am a new UNIX user who must also perform system 
administration duties with a problem.
I have a script that I want other users to execute, but I don't
want them to be able to read it.
But when another user tries running a script that has 711
privaleges, the script file cannot be found.
Is there way to make a KornShell script run that can be
run by other users, without giving read privalege to that
user?  
I am using KornShell running on an AIX RS600.
Thanks in advance for any help.
-- 
Doug Forman      daf@netcom.cm (408) 742-5077  
" Any opinions expressed are unintentional. "
Newsgroups: comp.unix.shell
From: bill@Celestial.COM (Bill Campbell)
Subject: Re: sed - use with multiple files
Organization: Celestial Software, Mercer Island, WA
Date: Wed, 08 Apr 1992 15:52:05 GMT

In <1992Apr8.022554.8516@unixland.natick.ma.us> trw@unixland.natick.ma.us (Tim Weil) writes:

>I'm looking for a way to use sed with an editor (vi would be fine)
>to make global changes to a set of files in a subdirectory.  The
>use of sed isn't mandatory but the concept is to 
>      Open File
>      Make Global Change (sed or no sed)
>      Close File
>      Repeat for all files in directory
> 
>Can this be done with shell programming?  Any advice much appreciated.
> 
sed probably isn't the tool you want for this job, but the lowly ed.

:
# edit files in a directory (better make sure they're not binary).

for file in * ; do	#{
	ed - $file <<DONE
g/foo/s//bar/g
...rest of edit operations
w
q
DONE
done	#}

This edits the files in place.  There are safer ways to do this
including perl with the -i<suffix> option.

Bill
-- 
INTERNET:  bill@Celestial.COM   Bill Campbell; Celestial Software
UUCP:   ...!thebes!camco!bill   6641 East Mercer Way
             uunet!camco!bill   Mercer Island, WA 98040; (206) 947-5591
SPEED COSTS MONEY -- HOW FAST DO YOU WANT TO GO?
Newsgroups: comp.unix.shell
From: dattier@gagme.chi.il.us (David W. Tamkin)
Subject: Re: Deleting alternate lines
Organization: Gagme Public Access Hermitage, Chicago, Illinois  60656-1252
Date: Mon, 6 Apr 1992 03:16:09 GMT

anw@maths.nott.ac.uk (Dr A. N. Walker) wrote in
<1992Apr3.112656.13944@maths.nott.ac.uk>:

| If there is a competition for the shortest command, I nominate
| 
| 	sed n\;d
| 
| Sadly, this doesn't "reverse" to get even-numbered lines.

sed 1!n\;d

that is, if your sed honors semicolons.  I had already suggested
sed 'n
d' to the original poster in email.

(In shells where bangs need quoting, you might as well use '1!n;d'
as 1\!n\;d.)

David W. Tamkin   Box 59297   Northtown Station, Illinois  60659-0297
dattier@gagme.chi.il.us   CompuServe: 73720,1570   MCI Mail: 426-1818
From: lingerke@expert.cc.purdue.edu (Raymond Luxury Yacht)
Newsgroups: comp.unix.shell
Subject: ksh: Calling from a program...
Date: 12 Apr 92 03:02:24 GMT
Article-I.D.: mentor.44949
Reply-To: Linger@starsys.laf.in.us (Ken Linger)
Organization: Star Systems

I've got a ksh script running.  In my .profile, I specify several
variables and aliases.  In my script, I give the user the option
of dropping into the shell until they press ctrl-d.  This works
fine, but the aliases and variables don't transfer into the shell
call (which is simply a line that calls ksh).

If I make it read a file or specific commands, it then returns
immediately to the program.  I guess what I need to do is have
part of the commands come from a file, and another part come from
standard i/o.

How can I do this?  Am I barking up the wrong tree?

Thanks in advance for any help that can be offered.

Ken
-- 

        Ken Linger                              Linger@starsys.laf.in.us        
        School of Computer Science              lingerke@expert.cc.purdue.edu   
        Purdue University                       AOL:  Ken Linger
From: yanghe@acsu.buffalo.edu (Yang He)
Newsgroups: comp.unix.shell
Subject: Sehll Script to C Translator
Date: 8 Apr 92 04:08:53 GMT
Organization: UB


    Does anyboy know the existence of any shell script to C code 
translator?

    This issue is raised by the following experience. In my research,
I use a lot of shell (usually C-shell) script to avoid spending too
much time writting C code before I get roughly the idea about how
good the results are. I found this very efficeint in my research.
However, I often end up with a complicated scrip which runs sevral 
of my C programs and some system commands. Writting C code to replace
whole script is tedious. Suppose I have the source code for all the 
system commands and, of course, my own programs, it doesn't seem to 
be impossible to automatically translate the script into a complete 
C code. (If the source code for any system command is not available, 
the command may be left for a system() call.) Just think about 
"guide" for buiding X window interface, if you happen to know it.

    1. Has this been done by somebody? Any information about this is
very much appreciated.

    2. Anybody interested in doing this? Please talk to me.

Yang He
yanghe@sun1.med.buffalo.edu
Newsgroups: comp.unix.shell
From: pete@wvus.org (Pete Gregory - UNIX SA)
Subject: Re: File Access Counts
Organization: World Vision U.S.
Date: Wed, 15 Apr 92 20:36:42 GMT
Keywords: File Access Counts

In article <1992Apr14.130320.6029@polari.com> errant@polari.com writes:
>Need a script for counting the number of accesses to a given file
>during the day.  File will be accessed numerous times a minute.

I doubt this can be done - UNIX filesystem instrumentation is practically
nonexistent.  If you have the code to whatever is accessing the files whose
access you want to measure, you'd have to build it in there.
-- 

Pete Gregory       |  Internet: pete@wvus.org
UNIX SA            |  Bangpath: ames!elroy!wvus!pete
World Vision U.S.  |  Slowpath: 919 W. Huntington Dr., Monrovia, CA 91016
Newsgroups: comp.unix.shell
From: mcook@mrc.dev.cdx.mot.com (Michael Cook)
Subject: Re: Wanted: Generate sequential file names
Organization: Motorola Codex, Canton, Massachusetts
Date: Wed, 15 Apr 1992 18:18:12 GMT

bengtl@maths.lth.se (Bengt Larsson) writes:

>In article <1992Apr14.020643.1498@candle.uucp> root@candle.uucp (Bruce Momjian) writes:
>>Does anyone have a nifty bourne shell script which turns filenames like: 
>>
>>	fred003	 	into 	fred004
>>	barney06	into	barney07
>>
>>and so forth?  It should work for a variable number of zeros.  I want to
>>use this for keeping log files.

>Assuming no whitespace in filenames:

>   newfile=`echo "$oldfile" | sed 's/[0-9]*$/ &/' |
>   awk '{printf (sprintf("%%s%%0%dd\n",length($2))),$1,$2+1}'`

sprintf?  Why not just

  awk '{printf "%s%0" length($2) "d\n", $1, $2 + 1}'`

Or, don't use echo and sed:

  newfile=`nawk '
   BEGIN {
    sub(/^([^0-9]*)(.*)$/, "\\1 \\2", ARGV[1])
    $0 = ARGV[1]
    printf "%s%0" length($2) "d\n", $1, $2 + 1
    exit(0)
   }
  ' "$oldfile"`

Or, if you switch to ksh, you'd probably be able to do the whole thing
without forking.
-- 
 ==========================================================
 Michael.Cook@merlin.dev.cdx.mot.com          (617)821-7590
 Motorola/Codex, 20 Cabot Blvd, C2-135, Mansfield, MA 02048
 ==========================================================
From: galpf01@ngala005.NT.COM (pat finnerty)
Newsgroups: comp.unix.shell
Subject: Extracting characters from a string.
Date: 8 Apr 92 22:13:55 GMT
Reply-To: galpf01@ngala005.NT.COM
Organization: Northern Telecom (Ireland) LTD.,GALWAY, IRELAND.

Hello all,
I am attempting to write a script which will rename files. I need to be able
extract characters from a string in order to do this. 
  For example, if I have a file with name of "abcdef" how could I strip off the
first 2 characters for use later in the script. Should I use awk? If so, how?

Thanx in advance.

###################################################
# Pat Finnerty, Northern Telecom, Galway, Ireland.#
#          Phone 353-91-57671.                    #
###################################################
From: shwake@raysnec.UUCP (Raymond N. Shwake)
Newsgroups: comp.unix.shell
Subject: Re: How can I get the ksh88 for sun ??
Keywords: ksh88
Date: 12 Apr 92 00:42:56 GMT
Organization: A/C International

ath@jds.incom.de (Andreas Thiedecke) writes:

>I know the pdksh but I need the full functions
>of the ksh88. I can also pay for it.

If you're in a hurry, the place to get the latest available source is the
UN*X System Toolchest. It's not cheap, but the license extends to your
entire organization.

If you can wait, I suspect it will be bundled with Solaris 2.0, if the
latter is, in fact, a proper System V R4 implementation.
-- 

uunet!media!ka3ovk!raysnec!shwake			shwake@rsxtech
Newsgroups: comp.unix.shell
From: at887@cleveland.Freenet.Edu (Scott Butler)
Subject: ksh source wanted!
Reply-To: at887@cleveland.Freenet.Edu (Scott Butler)
Organization: Case Western Reserve University, Cleveland, Ohio, (USA)
Date: Mon, 6 Apr 92 19:23:27 GMT


Sorry if this is a FAQ, but I am desperately seeking the source code for the
korn shell....any help/hints would be greatly appreciated!

*** PLEASE E-MAIL RESPONSES TO ME - THANX! ***

Thanx a lot,
Scott

-- 
Scott Butler
------------
100% disclaimer-free!
From: ratinox@splinter.coe.northeastern.edu (Stainless Steel Rat)
Newsgroups: comp.unix.shell
Subject: Re: Maintaining .cshrc files across several machines
Date: 9 Apr 92 00:18:41 GMT
Reply-To: ratinox@splinter.coe.northeastern.edu (Rich Pieri)
Organization: 3WA, Boston Office. Or Nu Meta Chi. Take your pick.
In-reply-to: rantapaa@s6.math.umn.edu's message of 8 Apr 92 21:37:42 GMT
X-Signature-Virus-Protection: Version 1.51
X-Quote: "Wow! Look!! A stray meatball!! Let's interview it!"
X-Quote: -- Zippy the Pinhead
X-Posting-Software: GNUS 3.14.1 [ NNTP-based News Reader for GNU Emacs ]

>>>>> On 8 Apr 92 21:37:42 GMT, rantapaa@s6.math.umn.edu (Erik E. Rantapaa) said:

rantapaa> Has any one solved the problem of maintaining .cshrc files across
rantapaa> several machines?  In particular, it would be nice to have a
rantapaa> 'cshrc-config' program which would sniff out a system for binary
rantapaa> paths, libraries, etc.

You mean using one .cshrc across multple archetectures in a network
cluster? At Northeastern, there are several clusters of Sun 3's, Sun 4's,
and DECStations. Here's what I use to keep my multiple binaries separate:

# DEC has uname and machine; Sun has arch and mach.  Can't anyone agree?
if ( -x /bin/machine ) then		# using a DECStation
    setenv MACHTYPE `/bin/machine`	# get archetecture type
    if ($?prompt) then
	stty crtbs			# fix lusing dec tty mode
    endif
else					# using a Sun
    setenv MACHTYPE `/bin/arch`		# get archetecture type
endif

set path = ( ~/bin ~/bin/$MACHTYPE /bin /usr/etc /usr/hosts /usr/games \
		/usr/ucb /usr/bin /usr/bin/X11 /usr/local/bin )

I maintain subdirectories for in ~/bin for the various archetectures I use.
Once you get MACHTYPE set properly, you're all set.

--Rat
--
||||| | | | |  |  |  |   |   |    |    |    |   |   |  |  |  |  | | | | | |||||
                                                   __        ___ 
Richard Pieri, Northeastern's Stainless Steel Rat/   | /| / /   | The Worlds
Internet: ratinox@splinter.coe.northeastern.edu /__  |/ |/ / /| | Welfare Works
    UUCP: ...!northeastern.edu!splinter!ratinox/   | /| / / / | | Association:
  BITNET: UA_RLP@NUHUB{.BITNET}               /__  |/ |/ / /  | | I will solve
  USNail: 14 Westdale RD  Holbrook, MA 02343 /   | /| / / /___| | any problem
 ICBMnet: 42 deg 1 min N, 71 deg 0 min W    /    |/ |/ /_//_____| for you.
From: sid@knoblake.sybase.com (sid cowles)
Newsgroups: comp.unix.shell
Subject: Re: Maintaining .cshrc files across several machines
Date: 11 Apr 92 21:05:39 GMT

In article <rantapaa.702769062@s6.math.umn.edu>, rantapaa@s6.math.umn.edu (Erik E. Rantapaa) writes:
|> Has any one solved the problem of maintaining .cshrc files across
|> several machines?  In particular, it would be nice to have a
|> 'cshrc-config' program which would sniff out a system for binary
|> paths, libraries, etc.
|> Erik Rantapaa                              rantapaa@math.umn.edu

the solution i've chosen for this general problem is based on the
following code snipits:

#########################
# get the machine name. #
#########################
# some systems spout domains in addition to local host name.
# also, all sysV systems don't have expr substr.  use match instead.
set cmd="uuname -l || hostname || uname -n || /usr/5bin/uname -n"
set sys=`sh -c "{ $cmd; } 2>/dev/null"`
set sysname=`expr $sys \: '\([^\.]*\)'`
unset sys cmd

##################
# get user name: #
##################
set cmd='( echo $LOGNAME; echo $USER; ) | sort | uniq'
set un=`sh -c "{ $cmd; } 2>/dev/null"`
unset cmd


since i maintain accounts on different machines, i distinguish the
environment i've entered based on the machine name <=> user name
couplet.  given this distinguishing mark, i then source a csh script
that includes the specific paths for all such couplets that i use.
i've chosen to not allow a single deterministic algorithm to determine
the path i'd like to use on any particular machine (i.e. sniff it out).
in some cases, it is necessary, for instance, for the system V bin to
precede the ucb bin on some sun machines.  on other machines, the
reverse ordering is prefered.  the criteria for determining this
ordering are frequently found by trial and error.

sid cowles  
voice: +1-510-596-3971
internet:                uucp:
sid@sybase.com           {pacbell,sun,{uunet,ucbvax}!mtxinu}!sybase!sid
scowles@llnl.gov         {backbone}!lll-winken!humpty!scowles
From: moconnor@pms704.pms.ford.com (Mike O'Connor)
Newsgroups: comp.unix.shell
Subject: Re: How to get TAB into the cmd line in tcsh
Date: 7 Apr 92 16:45:24 GMT
Article-I.D.: fmsrl7.1992Apr7.164524.26195
Reply-To: Mike O'Connor <mjo@fmsrl7.srl.ford.com>
Organization: "Fordz"
X-Disclaimer: Not an official spokesperson for Ford Motor Co.

In article <1992Apr7.004548.14654@csc.canberra.edu.au> Kim Holburn writes:

:I need to get a literal  TAB into the command line in tcsh. As in:
:grep ^[ #\t] /etc/printcap
:only the \t doesn't work of course! and tcsh won't let me put in an actual TAB.

What version of tcsh are you running?  Under tcsh 6.0+, if you type a
CTRL-V (quoted-insert) in front of the tab in most modes, you can
insert the tab/CTRL-I character.

						...Mike

-- 
 Mike O'Connor                     |  Ford Motor Company, USA
 Applications Systems Analyst      |  CPD P&MS ECC Core Software
 Phone #:  +1 (313) 390-4008       |  P.O. Box 2053, ECC MD-7
 Fax #:    +1 (313) 845-0576       |  Dearborn, MI  48121-2053
Newsgroups: comp.unix.shell
From: Kim Holburn
Subject: How to get TAB into the cmd line in tcsh
Organization: University of Canberra
Date: Tue, 7 Apr 92 00:45:48 GMT

I need to get a literal  TAB into the command line in tcsh. As in:
grep ^[ #\t] /etc/printcap
only the \t doesn't work of course! and tcsh won't let me put in an actual TAB.

Kim Holburn
University of Canberra      kim@csc.canberra.edu.au
From: digdon@ug.cs.dal.ca (Mike Digdon)
Newsgroups: comp.unix.shell
Subject: WATCH program
Date: 15 Apr 92 02:05:34 GMT
Organization: Math, Stats & CS, Dalhousie University, Halifax, NS, Canada


Ok, this is for anyone who has taken down the WATCH program I posted
a couple of weeks ago.  It seems that ftimes does not work on many
systems (too bad too, it is very handy to have at times..)..
So, the following in a fix (sort of, as the program does not work exactly
the same with this change).. to make this work without ftimes, replace this:
		new=`ftimes -m /etc/utmp`
with:
		new=`ls -l /etc/utmp`

If you have ftimes on your system, DO NOT make this change..
with the change, the program will not tell you who is on when the program
is first run (who knows, maybe you want that anyway), and will only
work on the minute (as in 20:33, and not 20:33:10), as ls -l only
uses the last minute (where ftimes uses seconds, and is obviously more
accurate)..
-- 
	     Mike Digdon - Vice Prez DSCSS - Dalhousie University
		     digdon@ug.cs.dal.ca  -- Halifax, NS
	 	 - Real programmers never work nine to five -
From: mikau@ida.liu.se (Mikhail Auguston)
Newsgroups: comp.unix.shell
Subject: Clean way to startup script from program ?
Keywords: script
Date: 8 Apr 92 14:51:38 GMT
Organization: CIS Dept, Univ of Linkoping, Sweden


 I'v developed a program that generates a
script file  xx  and then starts it up.
As I understand there are 2 ways to do it:
   system("csh -f xx")
 or
   system("chmod a+x xx");
   system("xx");
 Which is better from point of view of
 safe programming under Sun Unix ?
 Send me e-mail if you have an idea, please.
 mikau@ida.liu.se
From: jpr@jpradley.jpr.com (Jean-Pierre Radley)
Newsgroups: comp.unix.shell
Subject: Re: sed - use with multiple files
Date: 10 Apr 92 01:29:20 GMT
Organization: Unix in NYC

In article <1992Apr8.022554.8516@unixland.natick.ma.us> trw@unixland.natick.ma.us (Tim Weil) writes:
>I'm looking for a way to use sed with an editor (vi would be fine)
>to make global changes to a set of files in a subdirectory.  The
>use of sed isn't mandatory but the concept is to 
>      Open File
>      Make Global Change (sed or no sed)
>      Close File
>      Repeat for all files in directory

I use the 'replace' script in "The Unix Programming Environment" by
Kernighan & Pike .
-- 
Jean-Pierre Radley   Unix in NYC   jpr@jpr.com   jpradley!jpr   CIS: 72160,1341
From: mick@cict.fr (Michel Castagner)
Newsgroups: comp.unix.shell
Subject: Re: sh questions
Date: 7 Apr 92 12:50:33 GMT
	<1992Mar28.050238.22306@paramount.nikhefk.nikhef.nl>
Organization: Centre Interuniversitaire de Calcul de Toulouse
In-reply-to: maart@paramount.nikhefk.nikhef.nl's message of 28 Mar 92 05:02:38 GMT

Thanks for your response
From: ortcm@cbnewsm.cb.att.com (thomas.mcguigan)
Newsgroups: comp.unix.shell
Subject: ksh, ftp, sun problem
Keywords: ksh, ftp, sun
Date: 9 Apr 92 13:24:48 GMT
Article-I.D.: cbnewsm.1992Apr9.132448.15304
Organization: AT&T

Help!  I just set ksh as my login shell on the Sun SPARCStation I use.  Now
I find that I cannot ftp INTO the workstation - error message: Access
Denied.  FTP out of the workstation works fine.  Has anyone else seen this
problem?  Any suggestions on remedies (other than dropping ksh or running all
ftp jobs from th workstation)?

Thanks for any help anyone can provide.

Tom McGuigan
thomas.mcguigan@att.com
Xref: sparky comp.unix.shell:2039 comp.unix.questions:6073 comp.unix.wizards:2151
From: tsui@imec.be (Mung Laam Tsui)
Newsgroups: comp.unix.shell,comp.unix.questions,comp.unix.wizards
Subject: A Request for Source Code
Date: 9 Apr 92 15:31:55 GMT
Followup-To: comp.unix.shell
Organization: IMEC vzw, 3030 Leuven, Belgium


Hallo,

Could somebody provide me the source code of the UNIX command 'at'.
Many thanks in advance.

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=
TSUI, Mung Laam                                tsui@imec.be
					       Philips/VSDM
					       IMEC
					       Kapeldreef 75
					       3000 Leuven
					       Belgium
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=
From: chris@peregrine.peregrine.com (Chris Cole)
Newsgroups: comp.unix.shell
Subject: "Standard" .kshrc files wanted
Date: 11 Apr 92 19:19:02 GMT
Reply-To: chris@peregrine (Chris Cole)
Organization: Peregrine Systems, Inc.

I have just started using ksh, and miss the "pushd", "popd", "dirs"
features of csh.  I notice that they are defined in the book co-authored
by Korn.  Before I just type them in, I thought I'd ask if some kind
soul who has already done so would mail me a copy.  While we're at it,
if anyone has a collection of other nice .kshrc stuff, mail that to me
too.  If I get enough good stuff, I'll merge it, clean it up and post it.
From: gasser@eniac.seas.upenn.edu (Nathan Gasser ><>  )
Newsgroups: comp.unix.shell
Subject: 2 quick questions...
Date: 14 Apr 92 04:18:23 GMT
Article-I.D.: netnews.73939
Organization: University of Pennsylvania

Hi all,

1) Why the heck won't this work:

alias zmore 'zcat $1 | more'

It used to, I belive, but won't anymore.

2) Is there a utility which wraps the std_in to std_out so that words
aren't broken?  Sorta like fold, except don't break words.

I'm in SunOS 4.1.2, tcsh, Philadelpha, etc...

Thanks heaps,
Nate
--

Nathan Gasser       ><>         
gasser@eniac.seas.upenn.edu
From: jik@athena.mit.edu (Jonathan I. Kamens)
Newsgroups: comp.unix.shell
Subject: Re: help with csh
Date: 7 Apr 92 15:26:32 GMT
Organization: Massachusetts Institute of Technology

In article <1992Apr05.183359.13531@r-node.gts.org> marc@r-node.gts.org (Marc Fournier - System Admin) writes:

	   I just started using csh and am using default .cshrc and .login
   files that someone on my system created,

Did you ask the person who created them why they're behaving the way
they are.  It seems to me that that would have been a logical first
step before posting a message to the entire world.

   and they work great.  The 
   problems is that '*' no longer seems to work as a wildcard.

	   Any ideas?

Yes.  Type "echo $?noglob".  If it prints "1", then the dotfiles you
are using are setting the noglob variable somewhere in them, and you
need to find that setting and remove it.  If they are doing it in
order to do something funky with wildcards in the dotfiles, you should
put an "unset noglob" command at the end of whatever funkiness is
being done; else, you should just remove the "set noglob" completely.
The best way to find out the right thing to do is to ask the person
who wrote the dotfiles, or to ask someone else at your site.

-- 
Jonathan Kamens						jik@MIT.Edu
MIT Information Systems/Athena		    Moderator, news.answers
    (Send correspondence related to the news.answers newsgroup
	{and ONLY correspondence related to the newsgroup}
		 to news-answers-request@MIT.Edu.)
From: jik@athena.mit.edu (Jonathan I. Kamens)
Newsgroups: comp.unix.shell
Subject: Re: Having stty command in .cshrc for xterm.
Date: 7 Apr 92 15:29:56 GMT
Organization: Massachusetts Institute of Technology

In article <1992Apr7.050058.20942@en.ecn.purdue.edu> davis@en.ecn.purdue.edu (Robert E Davis) writes:
   In article <72975@netnews.upenn.edu> hseung@retina.anatomy.upenn.edu (Hyunsuk Seung) writes:
   >
   >I need to use the stty command to initialize/customize my environment
   >under xterm, but putting the command in .cshrc conflicts with my rsh
   >(or rcp) commands invoked from other machines.  Is there a clever way
   >to get around this problem (besides manually typing it or using
   >alias)?  Xterm reads only .cshrc file and not .login file.

Yes.  Enclose the stty command like this:

	if ($?prompt) then
		if ("$term" =~ xterm*) then
			stty ...
		endif
	endif

The outer "if" guarantees that the commands will only be run in an
interactive shell.  ANY commands that should only be run in an
interactive shell (including any "set prompt" commands!) should go
inside that test.

The inner "if" guarantees that the stty commands will only be run in
xterm windows.

	   Start up xterm with the -ls option, which tells it to start
   the shell as a login shell so that it will read your login files.
   Keep the stty stuff in the .login.

It is not a good idea to start up all xterm windows with -ls.

-- 
Jonathan Kamens						jik@MIT.Edu
MIT Information Systems/Athena		    Moderator, news.answers
    (Send correspondence related to the news.answers newsgroup
	{and ONLY correspondence related to the newsgroup}
		 to news-answers-request@MIT.Edu.)