home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.applications
- Path: sparky!uunet!haven.umd.edu!decuac!pa.dec.com!engage.pko.dec.com!nntpd.lkg.dec.com!hunnas!bath
- From: bath@hunnas (David Bath)
- Subject: SKsh PNPC and PNPC2 help.
- Message-ID: <1992Dec23.072530.17365@nntpd.lkg.dec.com>
- Sender: usenet@nntpd.lkg.dec.com (USENET News System)
- Organization: Digital Equipment Corp.
- X-Newsreader: Tin 1.1 PL4
- Date: Wed, 23 Dec 1992 07:25:30 GMT
- Lines: 59
-
-
- I know these two variables have caused the author a lot of grief. I believe
- I've read all the relevant documentation on them, but I'm still having some
- problems.
-
- My current setup (which almost works) is as follows:
-
- PS1='$_ANSI_P3$BPWD>$_ANSI_P1'
- PNPC=21
- PS2='$_ANSI_P2>$_ANSI_P1'
- PNPC2=21
-
- The way I figured it, each prompt has two $_ANSIs each of which count for
- 10. So, both PNPC and PNPC2 should be 20, but add one for good measure
- and you get 21. Is this correct?
-
- The doco for PNPC suggests it should be the count of non-printables in both
- PS1 *and* PS2. That would require I make it 40, but add one (or possibly
- two?) for good measure and get 41 (or 42?). Neither of these work very well.
-
- The setup in the supplied .skshinit implies that PNPC be the count of only
- the non-printables in PS1 so I proceeded on that basis and came up with
- 21 for both of them (as listed above).
-
- The only problem I've noticed so far with this setup is:
-
- If I'm in the root directory, where $BPWD is presumable the empty string,
- and I attempt to use filename completion, strange things happen. I have
- a directory in the root directory called Multimedia, so I do the following:
-
- >cd multimedia
- Multimedia>echo $BPWD
- Multimedia
- Multimedia>cd /
- >echo $BPWD
-
- >ls mult<hit TAB here>
-
- after hitting TAB, what I would like to see (on the same line) is:
-
- >ls Multimedia
-
- but what I actually see (on the same line) is:
-
- >ls multls Multimedia
-
- In other words, it correctly prints "ls Multimedia" but rather than starting
- where my original "ls" started (i.e. immediately to the right of the ">"),
- it started at the position it was at when I hit the TAB.
-
- Anyone got any ideas?
- --
-
- +-------------------------------+---------------------------------------------+
- | David Bath | bath@ozrock.enet.dec.com |
- | Networks and Communications | The views expressed are my own, etc... |
- | Digital Equipment Corporation | "Pink rubber gloves with black frilly bits" |
- | Gold Coast, Australia | |
- +-------------------------------+---------------------------------------------+
-