Re: Re: Patch (tiny): \cd (change dir) for psql.

From: will trillich <will(at)serensoft(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Re: Patch (tiny): \cd (change dir) for psql.
Date: 2001-03-27 16:52:19
Message-ID: 20010327105219.A1685@mail.serensoft.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-patches

On Tue, Mar 27, 2001 at 09:52:05AM -0500, Bruce Momjian wrote:
> > On Mon, 26 Mar 2001 15:07:37 +0000 (UTC), Mark Hamby
> > <mark(at)archer(dot)leavenworth(dot)army(dot)mil> wrote:
> > >
> > >
> > >Here's a patch for a \cd (change dir) command in psql program.
> > >It's very small and only adds a few lines.
> > >Personally, I am surprised psql does not have this command.
> > >It is EXTREMELY useful when \include'ing SQL scripts to set
> > >up a database schema.
> > >
> >
> > It's a good idea. This is an itch I've needed scratched many times.
> >
>
> Will be in 7.2.

and with it i'd imagine we'll also need

# return to previous directory, for the lazy
\cd -
# show current working directory
\cwd
\pwd

of course, we could continue working the way we are now:

somePsqlDb=> \q
% cd /some/where/over/the/rainbow
% psql mydata
mydata=>

but why? :)

--
It is always hazardous to ask "Why?" in science, but it is often
interesting to do so just the same.
-- Isaac Asimov, 'The Genetic Code'

will(at)serensoft(dot)com
http://newbieDoc.sourceforge.net/ -- we need your brain!
http://www.dontUthink.com/ -- your brain needs us!

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message will trillich 2001-03-27 17:00:29 Re: Supertypes?
Previous Message Poul L. Christiansen 2001-03-27 16:34:44 Re: .mdb to Postgres ?

Browse pgsql-patches by date

  From Date Subject
Next Message Peter Eisentraut 2001-03-27 17:33:53 Re: Re: Patch (tiny): \cd (change dir) for psql.
Previous Message Bruce Momjian 2001-03-27 16:36:53 Re: [HACKERS] docs toolchain appears broke?