sabotage-linux / netbsd-curses

libcurses and dependencies taken from netbsd and brought into a portable shape (at least to musl or glibc)
Other
147 stars 14 forks source link

Prevent clear.sh from overwriting userland's clear #37

Closed firasuke closed 5 years ago

firasuke commented 5 years ago

Apparently userland's clear command is being overwritten by tput/clear.sh after running a make install:

    $(INSTALL) -Dm 755 tput/clear.sh $(DESTDIR)$(BINDIR)/clear

This prevents that from happening simply by appending a .sh to the target clear.

rofl0r commented 5 years ago

this is expected behaviour. https://linux.die.net/man/1/clear netbsd-curses is a full replacement for ncurses, so it should also replace its command line utils.

firasuke commented 5 years ago

Ah I see, I was kinda expecting that as well.

Thanks for taking the time to explain and for the link.