home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / amiga / applicat / 9773 < prev    next >
Encoding:
Text File  |  1993-01-05  |  4.7 KB  |  133 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: Re: SKsh 2.1 (problems with "&")
  5. Message-ID: <1993Jan5.021952.5232@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. References: <C08rLy.2HC@fc.hp.com>
  10. Date: Tue, 5 Jan 1993 02:19:52 GMT
  11. Lines: 120
  12.  
  13.  
  14. --
  15.  
  16. Steve,
  17.  
  18. Now that we've got your attention in here ;-) I posted the following three
  19. queries to this newsgroup a few weeks back and no-one seemed to be able to
  20. help.  Can you?
  21.  
  22. +U option
  23. ---------
  24. Does anyone know if the +U option has changed between SKsh 2.0 and 2.1?
  25. I can't find any reference to it being different.  Since 2.0 I've run 
  26. with the +U option on so that my shell scripts will prompt me with a
  27. system requester to mount various volumes, but with 2.1 they don't stop
  28. (and don't work very well, since the required volumes aren't mounted).
  29.  
  30. For example, the following no longer causes a requester to mount volume
  31. 'notmounted'  :
  32.  
  33. doc2.1>options        
  34. BCFIUchlrs            
  35. doc2.1>ls notmounted: 
  36.                       
  37. doc2.1>
  38.  
  39.  
  40. PNPC and PNPC2
  41. --------------
  42. I know these two variables have caused the author a lot of grief.  I believe
  43. I've read all the relevant documentation on them, but I'm still having some
  44. problems.
  45.  
  46. My current setup (which almost works) is as follows:
  47.  
  48. PS1='$_ANSI_P3$BPWD>$_ANSI_P1'
  49. PNPC=21                       
  50. PS2='$_ANSI_P2>$_ANSI_P1'     
  51. PNPC2=21
  52.  
  53. The way I figured it, each prompt has two $_ANSIs each of which count for
  54. 10.  So, both PNPC and PNPC2 should be 20, but add one for good measure 
  55. and you get 21.  Is this correct?
  56.  
  57. The doco for PNPC suggests it should be the count of non-printables in both
  58. PS1 *and* PS2.  That would require I make it 40, but add one (or possibly
  59. two?) for good measure and get 41 (or 42?).  Neither of these work very well.
  60.  
  61. The setup in the supplied .skshinit implies that PNPC be the count of only
  62. the non-printables in PS1 so I proceeded on that basis and came up with
  63. 21 for both of them (as listed above).
  64.  
  65. The only problem I've noticed so far with this setup is:
  66.  
  67. If I'm in the root directory, where $BPWD is presumable the empty string,
  68. and I attempt to use filename completion, strange things happen.  I have
  69. a directory in the root directory called Multimedia, so I do the following:
  70.  
  71. >cd multimedia       
  72. Multimedia>echo $BPWD
  73. Multimedia           
  74. Multimedia>cd /      
  75. >echo $BPWD          
  76.                      
  77. >ls mult<hit TAB here>
  78.  
  79. after hitting TAB, what I would like to see (on the same line) is:
  80.  
  81. >ls Multimedia
  82.  
  83. but what I actually see (on the same line) is:
  84.  
  85. >ls multls Multimedia
  86.  
  87. In other words, it correctly prints "ls Multimedia" but rather than starting
  88. where my original "ls" started (i.e. immediately to the right of the ">"),
  89. it started at the position it was at when I hit the TAB.
  90.  
  91. Anyone got any ideas?
  92. --
  93.  
  94. Special chars & fname completion
  95. --------------------------------
  96.  
  97. The addendum for 2.1 mentions that filename completion over files with
  98. special chars in them has been improved:
  99.  
  100. >>File completion enhanced                                        
  101. >>                                                                
  102. >>   There is a minor enhancement to filename completion in  SKsh 
  103. >>   2.1.  SKsh 2.0 backslash escaped  spaces  and  some  special 
  104. >>   characters   during   filename   completion.     SKsh    2.1 
  105. >>   understands a larger set of these special  characters  which 
  106. >>   would otherwise cause parameter breaks.
  107.  
  108. It seems to "backslash escape" spaces ok, but having done so, it doesn't
  109. seem to wish to look further.  For example, I have the following 
  110. directory:
  111.  
  112. Digi-View 4.0>pwd                                                  
  113. Workbench:Multimedia/Digi-View 4.0                                 
  114. Digi-View 4.0>ls -ld frank                                         
  115. frank                    ----rwed    <Dir>       23-Dec-92 15:12:07
  116. Digi-View 4.0>
  117. Digi-View 4.0>cd ..                 
  118. Multimedia>ls -ld Digi-View\ 4.0/fra<hit TAB here>
  119.  
  120. When I hit TAB, I get the beep/flash (thanks to the great new +B option).
  121. If I hit ESC=, it indicates it has no files to offer me.
  122.  
  123. I can't remember now whether it behaved this way under 2.0 or not.
  124. Anyone got any ideas?
  125. --
  126.  
  127. +-------------------------------+---------------------------------------------+
  128. | David Bath            | bath@ozrock.enet.dec.com                    |
  129. | Networks and Communications   | The views expressed are my own, etc...      |
  130. | Digital Equipment Corporation | "Pink rubber gloves with black frilly bits" |
  131. | Gold Coast, Australia         |                                             |
  132. +-------------------------------+---------------------------------------------+
  133.