Re: [hackers] [tabbed][PATCH] Remove quotes around variables from commands

From: Quentin Rameau <quinq_AT_fifth.space>
Date: Mon, 11 Jan 2021 08:11:59 +0100

> From: Sebastian LaVine <mail_AT_smlavine.com>

Hi Sebastian,

> Previously, if you had changed your PREFIX in config.mk to something
> like ~/.local, then instead of installing to /home/user/.local, a
> directory called '~' would be created in the project directory. Commands
> are also performed without quotes in the Makefiles of other suckless
> projects, like st or dwm.

That means that the user quoted the PREFIX in the first place, so
that's how it's wanted to be used.

The calling shell would do the tilde expansion (if the user wishes so),
the Makefile command itself shouldn't here.

e.g.:

$ make PREFIX='~/.local' install
will install to the quoted '~/.local' directory.

$ make PREFIX=~/.local install
will install to the expanded /home/$USER/.local directory.
Received on Mon Jan 11 2021 - 08:11:59 CET

This archive was generated by hypermail 2.3.0 : Mon Jan 11 2021 - 08:12:40 CET