Skip site navigation (1) Skip section navigation (2)

need help with csh

From: "Thomas G(dot) Lockhart" <lockhart(at)alumni(dot)caltech(dot)edu>
To: Postgres Hackers List <hackers(at)postgresql(dot)org>
Subject: need help with csh
Date: 1998-10-03 18:58:04
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
I'm trying to fix up initlocation to accept an environment variable as
an input parameter (in addition to the absolute path name it already

I'd like to be able to say:

  setenv PGDATA2 /home/postgres/data
  initlocation PGDATA2

However, initlocation sets a local variable PGALTDIR to the input
argument as the program starts, and I'm fumbling around trying to
evaluate the contents of PGALTDIR as an environment variable.

(So, I need PGALTDIR -> PGDATA2 -> /home/postgres/data, and to assign
the path name back to a local variable.)

Anyone know how to do this? Please??


                   - Tom


pgsql-hackers by date

Next:From: Terry MackintoshDate: 1998-10-03 20:25:30
Subject: Dumping of views -- done!
Previous:From: Thomas G. LockhartDate: 1998-10-03 15:47:00
Subject: Re: [HACKERS] Re: [BUGS] bug in "fetch" command?

Privacy Policy | About PostgreSQL
Copyright © 1996-2018 The PostgreSQL Global Development Group