[Slackbuilds-users] Proper Method to Categorize Desktop Apps

Konrad J Hambrick kjhambrick at gmail.com
Sun May 1 12:21:22 UTC 2022


On Sun, May 1, 2022 at 5:10 AM Dave Woodfall <dave at slackbuilds.org> wrote:

> On 01/05/22 04:58,
> Konrad J Hambrick <kjhambrick at gmail.com> put forth the proposition:
> <snip>
> > Question:  is there a better way ( or a recommended way ) to enter long,
> > formatted
> > lists of text like NEW_CAT in the code snippet below ?
> ...
> >    NEW_CAT="Science;Math;ImageProcessing;DataVisualization"
> >    NEW_CAT="$NEW_CAT;Geoscience;NumericalAnalysis;Qt;"
>
> If text width matters then that's how to enter long strings and
> keeping within a limit.  Under bash/zsh you can also use +=
>
> NEW_CAT="Science;Math;ImageProcessing;DataVisualization"
> NEW_CAT+=";Geoscience;NumericalAnalysis;Qt;"
>
> > Note that many other SBo Packages also fail `desktop-file-validate` so
> > maybe this was
> > all a fools-errand :)
>
> Well it is only a warning, not an error, so it wouldn't fail the
> slackbuild.
>
> --
> Dave
>
Thanks Dave !

I had forgotten that SlackBuilds for Slackware 15.0 and beyond require
#!/bin/bash

The += Operator is the way to go :)

-- kjh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20220501/f4064676/attachment.htm>


More information about the SlackBuilds-users mailing list