home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.graphics.gnuplot
- Path: sparky!uunet!haven.umd.edu!darwin.sura.net!jvnc.net!gmd.de!ira.uka.de!Sirius.dfn.de!math.fu-berlin.de!news.th-darmstadt.de!alexlehm
- From: alexlehm@iti.informatik.th-darmstadt.de (Alexander Lehmann)
- Subject: Re: Comment on GnuPlot V3.2 (under Unix)
- Sender: news@news.th-darmstadt.de (The News System)
- Message-ID: <1992Nov9.133540.56395@news.th-darmstadt.de>
- Date: Mon, 9 Nov 1992 13:35:40 GMT
- References: <1992Nov5.194056@helix.nih.gov>
- Nntp-Posting-Host: sun4.iti.informatik.th-darmstadt.de
- Organization: TH Darmstadt
- Lines: 48
-
- rvenable@helix.nih.gov (Richard M. Venable) writes:
- > In article <921105105653.1747@CUCCFA.CCC.COLUMBIA.EDU>,
- > MARK@CUCCFA.CCC.COLUMBIA.EDU (T. Mark Reboul) writes:
- > |> I have however noted just one minor thing which seems to me like a
- > |> deficiency.... I don't know how easy this would be to change, but it
- > |> would be useful if the user could enter a "cd" command of the form:
- > |>
- > |> cd "~username/whatever"
- > |>
- > |> The tilde spec doesn't seem to be allowed. (Am I doing something
- > wrong?)
- >
- > The tilde is a construct of the C shell (/bin/csh), and is not
- > recognized
- > by system calls requiring a pathname. In some of our programs here at
- > NIH
- > we substitute the value of the env var HOME for the tilde, which would
- > permit cd "~/whatever" but not the above syntax.
-
- There are a couple of unix programs that emulate the behaviour of the csh
- ~user prefix. It should be not that difficult to include that feature into
- gnuplot for the unix version. There are however some problems finding the
- passwd entries for different types of systems e.g. with NIS.
- Since gnuplot 3.3 has just moved into beta stage, this will have to be
- considered for 3.4, but I try to keep the suggestion in mind.
-
- >
- > |> I also noticed that even this command:
- > |>
- > |> ! cd ~username
- > |>
- > |> doesn't work, as the "system" function call generated by my command
- > |> won't handle the tilde.
- >
- > The above should work if /bin/csh is your login shell; however, the !
- > operation spawns a new subshell, so that even if you do change
- > directories,
- > as soon as the subshell exits, you're back in the directory you were in
- > before.
-
- The problem with the above command is the following. If you shell is csh,
- the cd command will be executed correctly, but since the new csh is started as
- a childprocess, the changes in the csh will not affect the setting in gnuplot.
- That is any cd command will fail is executed by ! (as do setenvs).
-
- --
- Alexander Lehmann | "Wopp"
- alexlehm@iti.informatik.th-darmstadt.de| - ( THHGTTG Pt.3 )
-