home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / amiga / applicat / 9577 < prev    next >
Encoding:
Text File  |  1992-12-23  |  2.6 KB  |  71 lines

  1. Newsgroups: comp.sys.amiga.applications
  2. Path: sparky!uunet!haven.umd.edu!decuac!pa.dec.com!engage.pko.dec.com!nntpd.lkg.dec.com!hunnas!bath
  3. From: bath@hunnas (David Bath)
  4. Subject: SKsh PNPC and PNPC2 help.
  5. Message-ID: <1992Dec23.072530.17365@nntpd.lkg.dec.com>
  6. Sender: usenet@nntpd.lkg.dec.com (USENET News System)
  7. Organization: Digital Equipment Corp.
  8. X-Newsreader: Tin 1.1 PL4
  9. Date: Wed, 23 Dec 1992 07:25:30 GMT
  10. Lines: 59
  11.  
  12.  
  13. I know these two variables have caused the author a lot of grief.  I believe
  14. I've read all the relevant documentation on them, but I'm still having some
  15. problems.
  16.  
  17. My current setup (which almost works) is as follows:
  18.  
  19. PS1='$_ANSI_P3$BPWD>$_ANSI_P1'
  20. PNPC=21                       
  21. PS2='$_ANSI_P2>$_ANSI_P1'     
  22. PNPC2=21
  23.  
  24. The way I figured it, each prompt has two $_ANSIs each of which count for
  25. 10.  So, both PNPC and PNPC2 should be 20, but add one for good measure 
  26. and you get 21.  Is this correct?
  27.  
  28. The doco for PNPC suggests it should be the count of non-printables in both
  29. PS1 *and* PS2.  That would require I make it 40, but add one (or possibly
  30. two?) for good measure and get 41 (or 42?).  Neither of these work very well.
  31.  
  32. The setup in the supplied .skshinit implies that PNPC be the count of only
  33. the non-printables in PS1 so I proceeded on that basis and came up with
  34. 21 for both of them (as listed above).
  35.  
  36. The only problem I've noticed so far with this setup is:
  37.  
  38. If I'm in the root directory, where $BPWD is presumable the empty string,
  39. and I attempt to use filename completion, strange things happen.  I have
  40. a directory in the root directory called Multimedia, so I do the following:
  41.  
  42. >cd multimedia       
  43. Multimedia>echo $BPWD
  44. Multimedia           
  45. Multimedia>cd /      
  46. >echo $BPWD          
  47.                      
  48. >ls mult<hit TAB here>
  49.  
  50. after hitting TAB, what I would like to see (on the same line) is:
  51.  
  52. >ls Multimedia
  53.  
  54. but what I actually see (on the same line) is:
  55.  
  56. >ls multls Multimedia
  57.  
  58. In other words, it correctly prints "ls Multimedia" but rather than starting
  59. where my original "ls" started (i.e. immediately to the right of the ">"),
  60. it started at the position it was at when I hit the TAB.
  61.  
  62. Anyone got any ideas?
  63. --
  64.  
  65. +-------------------------------+---------------------------------------------+
  66. | David Bath            | bath@ozrock.enet.dec.com                    |
  67. | Networks and Communications   | The views expressed are my own, etc...      |
  68. | Digital Equipment Corporation | "Pink rubber gloves with black frilly bits" |
  69. | Gold Coast, Australia         |                                             |
  70. +-------------------------------+---------------------------------------------+
  71.