Patch (tiny): \cd (change dir) for psql [with feedback]

From: "Mark Hamby" <mark(at)archer(dot)leavenworth(dot)army(dot)mil>
To: <pgsql-general(at)postgresql(dot)org>, <pgsql-patches(at)postgresql(dot)org>
Subject: Patch (tiny): \cd (change dir) for psql [with feedback]
Date: 2001-03-26 20:04:03
Message-ID: NCBBJHAODFJBGACGMCEJMEFDCHAA.mark@archer.leavenworth.army.mil
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-patches


(Sorry for the repost. I have amended my previous patch
with feedback that outputs the new current directory.)

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.

Hope you like,

Mark Hamby

P.S. I am not on the 'psql-patches' list, so responses should
be sent directly to me for more info or questions.

Attachment Content-Type Size
cd-patch.dif application/octet-stream 1.7 KB

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Peter Eisentraut 2001-03-26 20:04:13 Re: [GENERAL] Patch (tiny): \cd (change dir) for psql [with feedback]
Previous Message will trillich 2001-03-26 20:02:45 Re: Free PostgreSQL Database Hosting - Needs Beta Testers

Browse pgsql-patches by date

  From Date Subject
Next Message Peter Eisentraut 2001-03-26 20:04:13 Re: [GENERAL] Patch (tiny): \cd (change dir) for psql [with feedback]
Previous Message Bruce Momjian 2001-03-26 19:33:11 Re: Patch (tiny): \cd (change dir) for psql [with feedback]