﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
5180	executable gawk-5.2.1 is a remnant from Chapter 7	Xi Ruoyao	lfs-book	"gawk building system codes:

{{{
install-exec-hook:
    (cd $(DESTDIR)$(bindir); \
    name=`echo gawk | sed '$(transform)'` ; \
    $(LN) $${name}$(EXEEXT) gawk-$(VERSION)$(EXEEXT) 2>/dev/null ; \
    if [ ! -f awk$(EXEEXT) ]; \
    then    $(LN_S) $${name}$(EXEEXT) awk$(EXEEXT); \
    fi; exit 0)
}}}

The line creating gawk-5.2.1 expands to:

{{{
ln gawk gawk-5.2.1 2>/dev/null
}}}

Note that `ln` will refuse to recreate gawk-5.2.1 if it already exists.  So in Chapter 8, gawk-5.2.1 is not recreated.  As it's a hard link (different from symlink), it will keep the old content installed in Chapter 7.

I guess `make LN='ln -f' install` will fix the issue, but I've not tested it yet."	defect	closed	normal	11.3	Book	git	normal	fixed		
