home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / admin / 4646 < prev    next >
Encoding:
Internet Message Format  |  1992-08-22  |  7.1 KB

  1. Xref: sparky comp.unix.admin:4646 comp.windows.x:15524 comp.windows.x.apps:829
  2. Newsgroups: comp.unix.admin,comp.windows.x,comp.windows.x.apps
  3. Path: sparky!uunet!iWarp.intel.com|ichips!tmcconne
  4. From: tmcconne@sedona.intel.com (Tom McConnell)
  5. Subject: SUMMARY: POLL: What is in X/shell files? (REPOST)
  6. Message-ID: <1992Aug23.002433.18628@ichips.intel.com>
  7. Originator: tmcconne@sedona
  8. Keywords: SUMMARY POLL
  9. Sender: tmcconne@sedona (Tom McConnell)
  10. Reply-To: tmcconne@sedona.intel.com
  11. Organization: Intel Corporation
  12. Date: Sun, 23 Aug 1992 00:24:33 GMT
  13. Lines: 184
  14.  
  15.  
  16.   [This is a repost. The first attempt, several days ago, seems to have lost.]
  17.  
  18. The short version:
  19.  
  20.   1. Put the environment information in .cshrc.
  21.   2. Put the shell variables and aliases in .cshrc.
  22.   3. Put terminal setup and console setup in .login.
  23.   4. Put terminal setup in X resources (ie., .Xdefaults) for xdm.
  24.  
  25. The long version:
  26.  
  27.   These are the results of the poll of the use of environment files. The
  28. original questions are these:
  29.  
  30.      1. What do you use (what is in) .login for?
  31.  
  32.      2. What do you use (what is in) .cshrc for?
  33.  
  34.      3. What do you use (what is in) .xinitrc for?
  35.  
  36.      4. What do you use (what is in) .xsession for?
  37.  
  38.      5. Do you normally source a separate file for environment variables or
  39.        aliases?
  40.  
  41.   I appreciate the people who participated in this, and I would like to
  42. thank you for your time.
  43.  
  44.   Results
  45.   -------
  46.  
  47.   The results were, at best, mixed. My original reason for conducting the
  48. poll in the first place was to determine, in a multi-architecture,
  49. multi-environment X world, where to put things like path and stty.
  50.  
  51.   There is not agreement, for instance, on where to put environment
  52. variables.  Twelve (12) of the responses used .cshrc, and fourteen (14)
  53. used .login. Nearly everyone used .login for stty (terminal setup), and
  54. nearly everyone used .cshrc for "set" and "alias."
  55.  
  56.   The disagreement on where to set path seems to be a result of xdm and
  57. rsh, neither of which automatically invokes .login. In order to ensure
  58. that a path is available, the path was often set in .cshrc. For the
  59. .xsession file under xdm, a common response was to source .login, or just
  60. to duplicate the information from .login in the .xsession file.
  61.  
  62.   From these responses, I would say that the "best" approach is to use
  63. what works (brilliant, isn't it :). Here are some general guidelines
  64. that seem to be in common use:
  65.  
  66.     1. Most people tend to have a small set of files, with one or two
  67.       additional files that are sourced for environment or alias information.
  68.  
  69.     2. If rsh is going to be used, the general solution seems to be to
  70.       put the environment information in .cshrc.
  71.  
  72.     3. If xdm is going to be used, either put all of the environment
  73.       information in .xsession, source a "environment variables" file, or
  74.       put environment information in .cshrc.
  75.  
  76.   From numbers 2 and 3, it seems the most prudent approach is to put
  77. the environment information in .cshrc. .cshrc also has the shell
  78. variables and the aliases. This leaves terminal setup and
  79. console-specific setup for .login. When using xdm, terminal information
  80. can be set up in the X resources (thanks to Bruno Berstel for this
  81. example):
  82.  
  83.         * The .Xresources files
  84.  
  85.     ...
  86.     # We know it's Delete because of the xmodmap in .x{initrc,session}
  87.     XTerm*ttyModes:         erase ^? kill ^U intr ^C
  88.     ...
  89.     # You should try that : when you select a chunk of text in a window
  90.     # with the shift key down, it's automagically pasted on the command
  91.     # line without any other button press.
  92.     XTerm*VT100.translations: \
  93.         Meta<KeyPress>  : string(0x1b) insert() \n\
  94.         <KeyPress>      : insert()
  95.     ...
  96.  
  97.   Again, thank you for your time. If anyone would like a copy of the
  98. responses, I would be glad to send them to you. I would prefer to send a
  99. uuencoded, compressed tar file of the responses, but any form is fine
  100. with me. Please send a request via email to:
  101.  
  102.        tmcconne@sedona.intel.com
  103.  
  104.     Cheers,
  105.  
  106.     Tom McConnell
  107.  
  108.  Tom McConnell          |     Internet: tmcconne@sedona.intel.com
  109.  Intel, Corp. C3-21     |     Phone: (602)-554-8229
  110.  5000 W. Chandler Blvd. | The opinions expressed are my own. No one in 
  111.  Chandler, AZ  85226    | their right mind would claim them.
  112.  
  113.  
  114.   Comments
  115.   --------
  116.  
  117.   I only tally the responses that are explicit. For instance, if a response
  118. says:
  119.  
  120.       Everything is in .login
  121.  
  122. I only count a response as "everything." I do _not_ add to the number of
  123. .login responses.
  124.  
  125.   Most of the responses had some commentary about why certain things
  126. were "good" or "bad." For instance, Bruno Berstel provided a very
  127. nice background for environment issues in general.
  128.  
  129.   A number of the responses noted that they do not use C shell, but
  130. some other shell. zsh and the Bourne shell were common. As a result,
  131. the number of responses for .login and .cshrc are somewhat subjective,
  132. based on comments in the response.
  133.  
  134.   Several responses indicated that they used global, site, or the
  135. default file. Global alias files and /usr/lib/X11/xdm/Xsession are
  136. examples. I have seen differences in Xsession at different sites, so
  137. I have made no attempt to determine what "should" be in Xsession.
  138.  
  139.   Results
  140.   -------
  141. Total number of responses: 28
  142.  
  143. Environment variables in .cshrc: 12
  144. Environment variables in .login: 14
  145.  
  146. Everything in .cshrc: 4
  147. Everything in .login: 1
  148.  
  149. Terminal setup (TERM, stty, tset) in .cshrc: 3
  150. Terminal setup (TERM, stty, tset) in .login: 19
  151.  
  152. 4 responses with no .login file.
  153. 1 response with no .cshrc file.
  154.  
  155. Response where .xinitrc is the same as .xsession: 10
  156.          of these> set path in .login: 3
  157.                    set path in .cshrc: 3
  158.  
  159. .xsession sets up environment directly: 8
  160. .xsession sources a file: 2
  161. .xsession uses "xterm -ls": 1
  162.  
  163.   Participants
  164.   ------------
  165. Tom McConnell       <tmcconne@sedona.intel.com>
  166. Steven Ball         <steve@cs.anu.edu.au>
  167. Mark Watson         <mark@wehi.edu.au>
  168. Jim Fulton          <lupine!verbosa!jim@uunet.UU.NET>
  169. Ian Fitchet         <I.D.Fitchet@cs.bham.ac.uk>
  170. Andy Stevens        <stevens@madvlsi.columbia.edu>
  171. Thomas Richter      <richter@ki1.chemie.fu-berlin.de>
  172. Paul Davey          <pd@x.co.uk>
  173. Donn Cave           <donn@cac.washington.edu>
  174. Bruno Berstel       <berstel@lacim.uqam.ca>
  175. Ami Kleinman        <ami@shum.huji.ac.il>
  176. Amos Shapira        <amoss@CS.HUJI.AC.IL>
  177. Tom Tatlow          <tatlow@athena.lmo.dec.com>
  178. Mark Anderson       <mark@cs.ucsd.edu>
  179. John G Dobnick      <jgd@uwm.edu>
  180. Matt Wette          <mwette@jpl-gnc-gw.Jpl.Nasa.Gov>
  181. Richard Pieri       <ratinox@meceng.coe.northeastern.edu>
  182. Daniel S. Lewart    <d-lewart@uiuc.edu>
  183. Niclas Wiberg       <nicwi@isy.liu.se>
  184. Nick Smith          <nick@garland.bt.co.uk>
  185. Steve Rumsby        <steve@maths.warwick.ac.uk>
  186. Dan Connolly        <connolly@pixel.convex.com>
  187. Curt Schroeder      <curts@tmpcu.mdc.com>
  188. Andrew Stoker       <mac742@lancaster.ac.uk>
  189. Bill Trost          <trost@reed.edu>
  190. Jon Marthins        <jon@dikas.no>
  191. Daniel MacKay       <daniel@nstn.ns.ca>
  192. M. Eyckmans         <eyckmans@imec.be>
  193.  
  194. -- 
  195.  Tom McConnell          |     Internet: tmcconne@sedona.intel.com
  196.  Intel, Corp. C3-21     |     Phone: (602)-554-8229
  197.  5000 W. Chandler Blvd. | The opinions expressed are my own. No one in 
  198.  Chandler, AZ  85226    | their right mind would claim them.
  199.