[sbopkg-discuss] Re: Feature request - show diffs

Mauro Giachero mauro.giachero at gmail.com
Wed Feb 18 09:03:08 UTC 2009


On Wed, Feb 18, 2009 at 6:29 AM, Phillip Warner
<phillip.c.warner at gmail.com>wrote:

> [...]
> Did y'all mean that you don't want the Local/Original/Diff Dialog to
> show up if the files are the same?


Exactly. Sorry if I used a bad wording.


> If that is the case, then instead
> of using a tmp file why not have a statement similar to this
>
> if [ -n "$(diff -q file1 file2 2>/dev/null)" ]; then
>  # do_dialog_code
> fi
>
> This would keep y'all from having to manage even more tmp files.


But this would to the diff twice...
I really think it's a matter of taste here. Frankly, I'm not worried about
temp files whose lifespan doesn't exceed that of a single function -- after
all, it's rather easy to manage them correctly.

-- 
Mauro Giachero

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "sbopkg-discuss" group.
To post to this group, send email to sbopkg-discuss at googlegroups.com
To unsubscribe from this group, send email to sbopkg-discuss+unsubscribe at googlegroups.com
For more options, visit this group at http://groups.google.com/group/sbopkg-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sbopkg.org/pipermail/sbopkg-users/attachments/20090218/3cf43a78/attachment.htm>


More information about the sbopkg-users mailing list