🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

2 total messages Started by Don R. Maszle Mon, 06 Apr 1992 23:22
Odd behavior when '~' in include path
#158
Author: Don R. Maszle
Date: Mon, 06 Apr 1992 23:22
13 lines
962 bytes
>> Reading specs from /usr/local/lib/gcc/sun4-sunos4.1/2.0/specs
>> gcc version 2.0

Our system headers are not set up properly, so I have several local
versions of headers in an include directory $HOME/include.  Depending
on how I specify the include path, gcc will use either my locally
defined headers or the system headers in /usr/include.

        gcc -I~/include  ...      includes "*.h" files from /usr/include

        gcc -Ifull-pathname ...   includes "*.h" files from ~/include

Don Maszle
Re: Odd behavior when '~' in include path
#245
Author: G|ran Uddeborg
Date: Wed, 08 Apr 1992 07:45
8 lines
880 bytes
In article <22536@dog.ee.lbl.gov> maze@bea.lbl.gov (Don R. Maszle) writes:
>        gcc -I~/include  ...      includes "*.h" files from /usr/include
>
>        gcc -Ifull-pathname ...   includes "*.h" files from ~/include

"~" is only expanded by the shell if it is the first character of a
word.  It has nothing to do with gcc.  Replace "gcc" with "echo" in
the commands above for an illustration.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads