Using assignments as truth values seems to have been a favoured
authornealcrook <neal@pippaluk.org.uk>
Tue, 22 Nov 2016 08:39:07 +0000 (08:39 +0000)
committernealcrook <neal@pippaluk.org.uk>
Tue, 22 Nov 2016 08:39:07 +0000 (08:39 +0000)
commit2b1b8f49c252be2d7da5d0266bc657fedef1ba6a
treee89e9144643202563e8e82ac03dbe05155b91123
parent7eec99c7ec337818e34a3c782c093f3f1e1b0e8a
Using assignments as truth values seems to have been a favoured
programming style of Mr Bourne. gcc moans about it though:

"suggest parentheses around assignment used as truth value"

so in the interests of fewer compile warnings I have complied with the
suggestion.
Applications/V7/cmd/sh/args.c
Applications/V7/cmd/sh/cmd.c
Applications/V7/cmd/sh/error.c
Applications/V7/cmd/sh/expand.c
Applications/V7/cmd/sh/fault.c
Applications/V7/cmd/sh/io.c
Applications/V7/cmd/sh/macro.c
Applications/V7/cmd/sh/name.c
Applications/V7/cmd/sh/print.c
Applications/V7/cmd/sh/service.c
Applications/V7/cmd/sh/string.c