This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Several snapshots on the same system?
> On Sun, Feb 10, 2002 at 05:09:56PM +0100, Andreas Schwab wrote:
> > Phil Edwards <phil@jaj.com> writes:
> > |> the tilde will not be expanded, but in
> > |>
> > |> --prefix=~/install
> > |>
> > |> it will be.
> >
> > No, it won't. The expansion only occurs as part of an assignment.
>
> I do it all the time when I know that I /don't/ need to be portable...
Depends on bash version: my friend with bash-1 thought I was talking
nonsense because "of course, echo --prefix=~/install works", whilst bash-2,
tcsh-6.09 and zsh-3.1.6 all fail to expand the ~.
I agree this is a knowledge-of-shell rather than knowledge-of-gcc issue; I'd
still put a line or two in the documentation about it because
knowledge-of-shell isn't really a prerequisite for playing with compilers
(though obviously I stay _well_ away from the makefile), and I expect I'm
not the only person who's wasted three hours because of it.
Tom, building 20020211 tonight