tiflolinux.org - GNU Social
  • Login

Bienvenido

  • Public

    • Public
    • Network
    • Groups
    • Popular
    • People

Conversation

Notices

  1. Ekaitz Zárraga 👹 (ekaitz_zarraga@mastodon.social)'s status on Tuesday, 14-Jun-2022 16:57:33 CEST Ekaitz Zárraga 👹 Ekaitz Zárraga 👹

    The best bash script of the year.

    In conversation Tuesday, 14-Jun-2022 16:57:33 CEST from mastodon.social permalink
    • Efi (nap pet) 🐱💤 (efi@chitter.xyz)'s status on Tuesday, 14-Jun-2022 17:00:24 CEST Efi (nap pet) 🐱💤 Efi (nap pet) 🐱💤
      in reply to

      @ekaitz_zarraga isn't there a better way to chech paths? pretty sure [[ has flags for that

      In conversation Tuesday, 14-Jun-2022 17:00:24 CEST permalink
    • Ekaitz Zárraga 👹 (ekaitz_zarraga@mastodon.social)'s status on Tuesday, 14-Jun-2022 17:00:24 CEST Ekaitz Zárraga 👹 Ekaitz Zárraga 👹
      in reply to
      • Efi (nap pet) 🐱💤

      @efi I'm complaining, I didn't write this.

      First, [[ is a bashism, so it's better to go just for [ (which is `test`, but come on... it looks better if you use the [), and sure, there are better ways to check strings... they use the x"" trick which is one of the worst tricks ever

      In conversation Tuesday, 14-Jun-2022 17:00:24 CEST permalink
    • ruffni@mstdn.io's status on Tuesday, 14-Jun-2022 17:02:18 CEST ruffni ruffni
      in reply to

      @ekaitz_zarraga i stumbled over this today too (in U-Boot, so Hush). i guess this catches empty strings

      In conversation Tuesday, 14-Jun-2022 17:02:18 CEST permalink
    • Ekaitz Zárraga 👹 (ekaitz_zarraga@mastodon.social)'s status on Tuesday, 14-Jun-2022 17:02:18 CEST Ekaitz Zárraga 👹 Ekaitz Zárraga 👹
      in reply to
      • ruffni

      @ruffni sure that's the goal! but there are better ways to do that I think...

      In conversation Tuesday, 14-Jun-2022 17:02:18 CEST permalink
    • Ekaitz Zárraga 👹 (ekaitz_zarraga@mastodon.social)'s status on Tuesday, 14-Jun-2022 17:53:55 CEST Ekaitz Zárraga 👹 Ekaitz Zárraga 👹
      in reply to
      • ruffni

      @ruffni [ -z $VAR ] ?

      In conversation Tuesday, 14-Jun-2022 17:53:55 CEST permalink
    • ruffni@mstdn.io's status on Tuesday, 14-Jun-2022 17:53:56 CEST ruffni ruffni
      in reply to

      @ekaitz_zarraga i'm listening...?

      In conversation Tuesday, 14-Jun-2022 17:53:56 CEST permalink
    • Ekaitz Zárraga 👹 (ekaitz_zarraga@mastodon.social)'s status on Tuesday, 14-Jun-2022 18:22:05 CEST Ekaitz Zárraga 👹 Ekaitz Zárraga 👹
      in reply to
      • ruffni

      @ruffni I mean: man test ftw

      In conversation Tuesday, 14-Jun-2022 18:22:05 CEST permalink
    • ruffni@mstdn.io's status on Tuesday, 14-Jun-2022 19:58:46 CEST ruffni ruffni
      in reply to

      @ekaitz_zarraga they are not equivalent, though. if $VAR is not defined in the env, then `test -z $VAR` returns 0, but `test "" = $VAR` fails completely, which can be desirable

      In conversation Tuesday, 14-Jun-2022 19:58:46 CEST permalink
    • Ekaitz Zárraga 👹 (ekaitz_zarraga@mastodon.social)'s status on Tuesday, 14-Jun-2022 20:03:04 CEST Ekaitz Zárraga 👹 Ekaitz Zárraga 👹
      in reply to
      • ruffni

      @ruffni and but in any case the x"" is needed? there's no other fucking way?
      has to be

      In conversation Tuesday, 14-Jun-2022 20:03:04 CEST permalink
    • ruffni@mstdn.io's status on Tuesday, 14-Jun-2022 21:27:26 CEST ruffni ruffni
      in reply to

      @ekaitz_zarraga i smell legacy

      In conversation Tuesday, 14-Jun-2022 21:27:26 CEST permalink
    • Ekaitz Zárraga 👹 (ekaitz_zarraga@mastodon.social)'s status on Tuesday, 14-Jun-2022 21:27:26 CEST Ekaitz Zárraga 👹 Ekaitz Zárraga 👹
      in reply to
      • ruffni

      @ruffni yeah, it's the old way to do it, that's why I was mentioning this

      In conversation Tuesday, 14-Jun-2022 21:27:26 CEST permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

tiflolinux.org - GNU Social is a social network, courtesy of tiflolinux.org. It runs on GNU social, version 2.0.1-beta0, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All tiflolinux.org - GNU Social content and data are available under the Creative Commons Attribution 3.0 license.