From: Chuck Swiger on
On Mar 18, 2010, at 12:48 AM, Doug Barton wrote:
>> touch /etc/make.conf && echo "CFLAGS += -Wno-error" >> /etc/make.conf
>
> No reason for the touch first, FWIW.

Some shells aren't willing to append to files which don't already exist:

# echo "CFLAGS += -Wno-error" >> /etc/make.conf
zsh: no such file or directory: /etc/make.conf

Regards,
--
-Chuck

_______________________________________________
freebsd-ports(a)freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscribe(a)freebsd.org"

From: Doug Barton on
On 03/18/10 04:43, Chuck Swiger wrote:
> On Mar 18, 2010, at 12:48 AM, Doug Barton wrote:
>>> touch /etc/make.conf && echo "CFLAGS += -Wno-error" >> /etc/make.conf
>>
>> No reason for the touch first, FWIW.
>
> Some shells aren't willing to append to files which don't already exist:
>
> # echo "CFLAGS += -Wno-error" >> /etc/make.conf
> zsh: no such file or directory: /etc/make.conf

Oh, well, that's just stupid. :) One more reason not to use zsh ...


Doug

--

... and that's just a little bit of history repeating.
-- Propellerheads

Improve the effectiveness of your Internet presence with
a domain name makeover! http://SupersetSolutions.com/

_______________________________________________
freebsd-ports(a)freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscribe(a)freebsd.org"

From: Andriy Gapon on
on 18/03/2010 22:13 Doug Barton said the following:
> On 03/18/10 04:43, Chuck Swiger wrote:
>> On Mar 18, 2010, at 12:48 AM, Doug Barton wrote:
>>>> touch /etc/make.conf && echo "CFLAGS += -Wno-error" >> /etc/make.conf
>>> No reason for the touch first, FWIW.
>> Some shells aren't willing to append to files which don't already exist:
>>
>> # echo "CFLAGS += -Wno-error" >> /etc/make.conf
>> zsh: no such file or directory: /etc/make.conf
>
> Oh, well, that's just stupid. :) One more reason not to use zsh ...

$ echo "CFLAGS += -Wno-error" >> /tmp/sure-doesnt-exist
$ echo $?
0

This is zsh with default setting.
So, don't blame on zsh what a smart user can inflict upon himself via
configuration :-)

--
Andriy Gapon
_______________________________________________
freebsd-ports(a)freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscribe(a)freebsd.org"