Article View: gnu.gcc.help
Article #50235Re: cpp handling of -I~
From: Robert Andrew Ryan
Date: Wed, 03 Nov 1993 17:25
Date: Wed, 03 Nov 1993 17:25
17 lines
1378 bytes
1378 bytes
Excerpts from netnews.gnu.gcc.help: 3-Nov-93 cpp handling of -I~ Thomas A Peterson@src.ho (262) > Is there a reason why the C preprocessor does not do tilde expansion of > include directory names? > aristotle$ gcc -I~tap/ -c foo.c > foo.c:1: foo.h: No such file or directory This is not a function of CPP, the ~ is traditionally only interpretted by the shell, and only when the ~ is the first character of the word. (Which makes things like -Ifilename a royal pain sometimes.) You can use $HOME (if you are tap :-), or set another shell variable appropriately and use it. -Rob
Technical Details
Message-ID:
<MgpyZou00gjOF5_mQS@andrew.cmu.edu>Path:
arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!math.ohio-state.edu!cis.ohio-state.edu!news.sei.cmu.edu!bb3.andrew.cmu.edu!andrew.cmu.edu!rr2b+References:
<TAP.93Nov3090912@aristotle.src.honeywell.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,82923918774f76c X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1993-11-03 09:54:46 PST Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!math.ohio-state.edu!cis.ohio-state.edu!news.sei.cmu.edu!bb3.andrew.cmu.edu!andrew.cmu.edu!rr2b+ From: Robert Andrew Ryan <rr2b+@andrew.cmu.edu> Newsgroups: gnu.gcc.help Subject: Re: cpp handling of -I~ Date: Wed, 3 Nov 1993 12:25:08 -0500 Organization: Information Technology Center, Carnegie Mellon, Pittsburgh, PA Lines: 17 Message-ID: <MgpyZou00gjOF5_mQS@andrew.cmu.edu> References: <TAP.93Nov3090912@aristotle.src.honeywell.com> NNTP-Posting-Host: po2.andrew.cmu.edu In-Reply-To: <TAP.93Nov3090912@aristotle.src.honeywell.com>