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: Re: SKsh 2.1 (problems with "&")
- Message-ID: <1993Jan5.021952.5232@nntpd.lkg.dec.com>
- Sender: usenet@nntpd.lkg.dec.com (USENET News System)
- Organization: Digital Equipment Corp.
- X-Newsreader: Tin 1.1 PL4
- References: <C08rLy.2HC@fc.hp.com>
- Date: Tue, 5 Jan 1993 02:19:52 GMT
- Lines: 120
-
-
- --
-
- Steve,
-
- Now that we've got your attention in here ;-) I posted the following three
- queries to this newsgroup a few weeks back and no-one seemed to be able to
- help. Can you?
-
- +U option
- ---------
- Does anyone know if the +U option has changed between SKsh 2.0 and 2.1?
- I can't find any reference to it being different. Since 2.0 I've run
- with the +U option on so that my shell scripts will prompt me with a
- system requester to mount various volumes, but with 2.1 they don't stop
- (and don't work very well, since the required volumes aren't mounted).
-
- For example, the following no longer causes a requester to mount volume
- 'notmounted' :
-
- doc2.1>options
- BCFIUchlrs
- doc2.1>ls notmounted:
-
- doc2.1>
-
-
- PNPC and PNPC2
- --------------
- 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?
- --
-
- Special chars & fname completion
- --------------------------------
-
- The addendum for 2.1 mentions that filename completion over files with
- special chars in them has been improved:
-
- >>File completion enhanced
- >>
- >> There is a minor enhancement to filename completion in SKsh
- >> 2.1. SKsh 2.0 backslash escaped spaces and some special
- >> characters during filename completion. SKsh 2.1
- >> understands a larger set of these special characters which
- >> would otherwise cause parameter breaks.
-
- It seems to "backslash escape" spaces ok, but having done so, it doesn't
- seem to wish to look further. For example, I have the following
- directory:
-
- Digi-View 4.0>pwd
- Workbench:Multimedia/Digi-View 4.0
- Digi-View 4.0>ls -ld frank
- frank ----rwed <Dir> 23-Dec-92 15:12:07
- Digi-View 4.0>
- Digi-View 4.0>cd ..
- Multimedia>ls -ld Digi-View\ 4.0/fra<hit TAB here>
-
- When I hit TAB, I get the beep/flash (thanks to the great new +B option).
- If I hit ESC=, it indicates it has no files to offer me.
-
- I can't remember now whether it behaved this way under 2.0 or not.
- 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 | |
- +-------------------------------+---------------------------------------------+
-