public inbox for [email protected]
help / color / mirror / Atom feedFrom: Tom Lane <[email protected]>
To: Nikolay Shaplov <[email protected]>
Cc: pgsql-hackers <[email protected]>
Subject: Re: Build problem with square brackets in build path
Date: Fri, 28 Apr 2023 14:06:37 -0400
Message-ID: <[email protected]> (raw)
In-Reply-To: <4793552.atqmVPU5g4@thinkpad-pgpro>
References: <4793552.atqmVPU5g4@thinkpad-pgpro>
Nikolay Shaplov <[email protected]> writes:
> If you do
> mkdir [source]
> git clone git://git.postgresql.org/git/postgresql.git [source]
> mkdir build; cd build
> ../\[source\]/configure
> make
> you will get
> make[1]: *** No rule to make target 'generated-headers'. Stop.
> If there are no "[]" in the path to the source, everything is OK.
It's generally quite unwise to use shell meta-characters in
file or directory names. I give you one example:
$ ls ../[source]
COPYRIGHT README.git contrib/
GNUmakefile.in aclocal.m4 doc/
HISTORY config/ meson.build
Makefile configure* meson_options.txt
README configure.ac src/
$ ls ../[source]/*.ac
ls: ../[source]/*.ac: No such file or directory
This is expected behavior (I leave it as an exercise for the
student to figure out why).
While it might be possible to make the Postgres build scripts
proof against funny characters in the build paths, the effort
required would be far out of proportion to the value. Not least
because manual operations in such a file tree would misbehave
often enough to convince you to change, even if the scripts were
all water-tight.
regards, tom lane
view thread (3+ messages)
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected]
Subject: Re: Build problem with square brackets in build path
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox