Package: make
Version: 3.80-9
Severity: minor

In the shell (tested with bash and zsh), ~/foo expands to
/home/andrew/foo whether or not this file exists.  In make, it expands
only when the file exists; otherwise, it "expands" to the empty string.
Here is an example:

% echo ~/foo
/home/andrew/foo
% ls ~/foo
ls: /home/andrew/foo: No such file or directory
% cat > Makefile
all:
        true $(wildcard ~/foo)
% make
true 
% touch foo
% make     
true /home/andrew/foo

This consistency seems gratuitous and unintuitive, so I believe it
should be fixed to behave like the shell.  If it is not fixed, it should
be documented.

Andrew

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.8-2-686
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages make depends on:
ii  libc6                       2.3.2.ds1-20 GNU C Library: Shared libraries an

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to