!ZUiNnfpRqQMDrPLChM:nixos.org

Nix ♥ la francophonie

208 Members
Salon francographe de NixOS68 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
19 Dec 2025
@lewo:matrix.orglewo

Meme en faisant ce genre de chose:

#! /usr/bin/env awk
#! awk bla bla...
11:14:37
@lewo:matrix.orglewo *

Meme en faisant ce genre de chose?

#! /usr/bin/env awk
#! awk bla bla...
11:15:05
@lewo:matrix.orglewo *

Meme en faisant ce genre de chose?

#! /usr/bin/env awk
#! awk -bla -bla 
11:16:37
@jo.blade:matrix.orgJo.Bladec'est quoi cette syntaxe ?12:14:12
@jo.blade:matrix.orgJo.Blade parce que moi il me semble que t'es obligé d'utiliser awk -f pour un shebang d'un script 12:14:36
@immae:immae.euimmae

ça ressemble à une tentative d’imitation de ce qu’on peut faire avec nix, mais je ne crois pas que awk ait ce genre de mécanisme?

12:20:43
@bew:matrix.orgbew I'm not sure how standard it is, but env has -S option that allows more that 2-3 params on the shebang, so #!/usr/bin/env -C awk -f should work 🤔 12:23:30
@bew:matrix.orgbew * I'm not sure how standard it is, but env has -S option that allows more that 2-3 params on the shebang, so #!/usr/bin/env -S awk -f should work 🤔 12:23:43
@immae:immae.euimmae

It should work but I regularly get issues with this syntax where the /usr/bin/env doesn’t know about this -S

12:24:20
@immae:immae.euimmae

The easiest is probably to stick with /usr/bin/env bash and call awk in the bash script ;)

12:25:21
@immae:immae.euimmae

(you probably lose proper syntax highlight but you’re sure that it works for everyone :p )

12:26:09

Show newer messages


Back to Room ListRoom Version: 6