cs50 / cs50.readthedocs.io

Home Page:https://cs50.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Need double quotes around multiple options for 'Enviroment Variables'

memilanuk opened this issue · comments

In the section for setting the Environment Variables, the options should have double quotes around them.

Currently they read like this:

CC=clang
CFLAGS=-fsanitize=signed-integer-overflow -fsanitize=undefined -ggdb3 -O0 -std=c11 -Wall -Werror -Wextra -Wno-sign-compare -Wno-unused-parameter -Wno-unused-variable -Wshadow
LDLIBS=-lcrypt -lcs50 -lm

...which causes the bash session to not recognize any of the options after the first i.e. -fsanitize=undefined is unrecognized, as is -lcs50.

The test should read like this:

CC=clang
CFLAGS="-fsanitize=signed-integer-overflow -fsanitize=undefined -ggdb3 -O0 -std=c11 -Wall -Werror -Wextra -Wno-sign-compare -Wno-unused-parameter -Wno-unused-variable -Wshadow"
LDLIBS="-lcrypt -lcs50 -lm"

Ah, thank you for catching! Fixing now, 059c5d5!