Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Jul 2011 14:13:45 -0500
From:      Stephen Montgomery-Smith <stephen@missouri.edu>
To:        Jung-uk Kim <jkim@FreeBSD.org>
Cc:        Pav Lucistnik <pav@FreeBSD.org>, Stephen Montgomery-Smith <stephen@FreeBSD.org>, "freebsd-ports@FreeBSD.org" <freebsd-ports@FreeBSD.org>
Subject:   Re: [RFC] A trivial change for DESKTOP_ENTRIES
Message-ID:  <4E1DEE69.8000704@missouri.edu>
In-Reply-To: <201107131326.44111.jkim@FreeBSD.org>
References:  <201107121826.00020.jkim@FreeBSD.org> <4E1DD013.4050107@missouri.edu> <201107131323.46842.jkim@FreeBSD.org> <201107131326.44111.jkim@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 07/13/2011 12:26 PM, Jung-uk Kim wrote:
> On Wednesday 13 July 2011 01:23 pm, Jung-uk Kim wrote:
>> On Wednesday 13 July 2011 01:04 pm, Stephen Montgomery-Smith wrote:
>>> On 07/13/2011 11:59 AM, Stephen Montgomery-Smith wrote:
>>>> But code like this seems simpler than my original suggestion:
>>>>
>>>> if (echo "$$4" | grep -E [^[:alnum:]_-]>   /dev/null); then echo
>>>> \ ${ECHO_MSG} "blah blah."; \
>>>> 	exit 1; \
>>>> fi; \
>>>> pathname="${DESKTOPDIR}/$$4";
>>>
>>> Oh, and use ${GREP} and ${ECHO_CMD} instead of echo and grep.
>>> And maybe the "-E" is unnecessary.
>>
>> If we actually do "exit 1;", I'd prefer something like that, too.
>
> Actually, this must be moved to 'check-desktop-entries' target, I
> believe.
>

Yes, that seems to be the right place.  And the code there is so full of 
"exit 1"'s that one more won't be noticed.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4E1DEE69.8000704>