home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / graphics / gnuplot / 306 < prev    next >
Encoding:
Text File  |  1992-11-06  |  1.9 KB  |  57 lines

  1. Newsgroups: comp.graphics.gnuplot
  2. Path: sparky!uunet!nih-csl.dcrt.nih.gov!helix.nih.gov!rvenable
  3. From: rvenable@helix.nih.gov (Richard M. Venable)
  4. Subject: Re: Comment on GnuPlot V3.2 (under Unix)
  5. Message-ID: <1992Nov5.194056@helix.nih.gov>
  6. Sender: postman@alw.nih.gov (AMDS Postmaster)
  7. Reply-To: rvenable@helix.nih.gov (Richard M. Venable)
  8. Organization: National Institutes of Health
  9. References:  <921105105653.1747@CUCCFA.CCC.COLUMBIA.EDU>
  10. Date: Fri, 6 Nov 1992 00:40:56 GMT
  11. Lines: 44
  12.  
  13. In article <921105105653.1747@CUCCFA.CCC.COLUMBIA.EDU>,
  14. MARK@CUCCFA.CCC.COLUMBIA.EDU (T. Mark Reboul) writes:
  15. |> I have however noted just one minor thing which seems to me like a 
  16. |> deficiency.... I don't know how easy this would be to change, but it
  17. |> would be useful if the user could enter a "cd" command of the form:
  18. |> 
  19. |>     cd  "~username/whatever"
  20. |> 
  21. |> The tilde spec doesn't seem to be allowed. (Am I doing something
  22. wrong?)
  23.  
  24. The tilde is a construct of the C shell (/bin/csh), and is not
  25. recognized
  26. by system calls requiring a pathname.  In some of our programs here at
  27. NIH
  28. we substitute the value of the env var HOME for the tilde, which would
  29. permit   cd "~/whatever"  but not the above syntax.
  30.  
  31. |> I also noticed that even this command:
  32. |> 
  33. |>     !  cd  ~username
  34. |> 
  35. |> doesn't work, as the "system" function call generated by my command 
  36. |> won't handle the tilde.
  37.  
  38. The above should work if /bin/csh is your login shell; however, the !
  39. operation spawns a new subshell, so that even if you do change
  40. directories,
  41. as soon as the subshell exits, you're back in the directory you were in
  42. before.
  43.  
  44.  
  45. <---------------------------------------------------------------------->
  46. >
  47. <  Rick Venable                (O O) |  "Back off, I'm a scientist."  
  48. >
  49. <  FDA/CBER Biophysics Lab      )|(  |        -- Bill Murray in       
  50. >
  51. <  rvenable@helix.nih.gov       (=)  |           'Ghostbusters'       
  52. >
  53. <---------------------------------------------------------------------->
  54. >
  55.  
  56.  
  57.