home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / amiga / misc / 12707 < prev    next >
Encoding:
Text File  |  1992-08-16  |  1.3 KB  |  37 lines

  1. Newsgroups: comp.sys.amiga.misc
  2. Path: sparky!uunet!mcsun!news.funet.fi!ousrvr.oulu.fi!ousrvr!nix
  3. From: nix@zombie.oulu.fi (Tero Manninen)
  4. Subject: Re: PDKSH Startup
  5. In-Reply-To: rbm2273@ultb.isc.rit.edu's message of Sat, 15 Aug 1992 02:19:16 GMT
  6. Message-ID: <NIX.92Aug16224435@zombie.oulu.fi>
  7. Lines: 23
  8. Sender: news@ousrvr.oulu.fi
  9. Reply-To: nix@stekt.oulu.fi
  10. Organization: University of Oulu, Finland
  11. References: <1992Aug15.021916.14677@ultb.isc.rit.edu>
  12. Date: Sun, 16 Aug 1992 20:44:35 GMT
  13.  
  14.  
  15. On Sat, 15 Aug 1992 02:19:16 GMT,
  16. rbm2273@ultb.isc.rit.edu (R.B. Mead ) said:
  17.  
  18. R.B.> PDKSH is a KSH-like shell that is available on "amiga.physik.unizh.ch".
  19.  
  20. R.B.> It looks very nice, but I'm having a little problem at startup. It does
  21. R.B.> NOT automatically look for a startup script ".kshrc", etc. I tried
  22. R.B.> snoopdos and came up empty.
  23.  
  24. pdksh is gcc compiled and uses ixemul.library which does direct dos calls
  25. in packet level.. snoopdos does not notice packets.
  26.  
  27. R.B.> How can I invoke PDKSH for interactive use and also have it execute
  28. R.B.> an initial shell script?  Sounds easy enough.
  29.  
  30. From looking the source you can find out that setting ENV variable to
  31. point something, it is sourced in pdksh startup.
  32. Mine is this:  setenv ENV "s:profile"
  33. Also if process name starts by "-" (like "-ksh") then it sources /etc/profile
  34. (etc:profile) and .profile.
  35.  
  36. ++Tero
  37.