Re: bug "\! cd"

From: Victor Wagner <vitus(at)ice(dot)ru>
To: Kathy zhu <Kathy(dot)zhu(at)Sun(dot)COM>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: bug "\! cd"
Date: 2002-07-29 13:00:22
Message-ID: 20020729130022.GH30971@ice.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On 2002.07.26 at 12:00:01 -0600, Kathy zhu wrote:

> I did '\i cd' on solaris.
> It doesn't change the directory. It stays where it is.

It is not a bug, it is a feature. Of any Unix, including Solaris,
Linux etc.

Current directory is a propriety of running process.
When process is finished, its current directory is forgotten,
and parent process doesn't know anything about it.

\! in psql starts shell as child process and executes given command in
it. So, executing a command "cd" couldn't affect psql process by design.

If there is a bug, it is that there is no backslash-command to change
working direcory. But there is such command - \cd, at least in 7.2.1

--
Victor Wagner vitus(at)ice(dot)ru
Chief Technical Officer Office:7-(095)-748-53-88
Communiware.Net Home: 7-(095)-135-46-61
http://www.communiware.net http://www.ice.ru/~vitus

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tatsuo Ishii 2002-07-29 13:35:15 Re: Multi-byte character bug
Previous Message Marko Mikulicic 2002-07-28 02:53:26 Money locale currency symbol position