Re: bash scripts in Guix question

2022-10-05 Thread Olivier Dion via
On Wed, 05 Oct 2022, Maxim Cournoyer wrote: > Hi, > > Olivier Dion writes: > > [...] > >>> I prefer the "#!/usr/bin/env bash" shebang; /usr/bin/env is available on >>> FHS distribution, and on Guix System, for convenience. You can use if >>> for any interpreted script, such as Guile, Python,

Re: bash scripts in Guix question

2022-10-05 Thread Maxim Cournoyer
Hi, Olivier Dion writes: [...] >> I prefer the "#!/usr/bin/env bash" shebang; /usr/bin/env is available on >> FHS distribution, and on Guix System, for convenience. You can use if >> for any interpreted script, such as Guile, Python, Perl, etc. > > Only if coreutils is in the profile that

Re: bash scripts in Guix question - suspend ?

2022-10-05 Thread Tobias Geerinckx-Rice
Hi jordi, >I'm puzzled, as long as 'loginctl suspend' is working in the shell But '~/.config/i3/i3exit loginctl suspend' isn't. Judging by your original snippet, you've mashed two commands together: you meant either ~/.config/i3/i3exit suspend or loginctl suspend But nobody here can

Re: bash scripts in Guix question

2022-10-04 Thread Olivier Dion via
On Tue, 04 Oct 2022, Maxim Cournoyer wrote: > Hi, > > Olivier Dion via writes: > >> On Tue, 04 Oct 2022, jordi wrote: >>> Hi guixers, >>> >>> i'm wondering...for my scripts to work in Guix, instead of >>> '#!/bin/bash' , >>> >> >> Typically the `sh' program should be a symlinked to

Re: bash scripts in Guix question

2022-10-04 Thread Maxim Cournoyer
Hi, Olivier Dion via writes: > On Tue, 04 Oct 2022, jordi wrote: >> Hi guixers, >> >> i'm wondering...for my scripts to work in Guix, instead of >> '#! /bin/bash' , >> > > Typically the `sh' program should be a symlinked to `bash' in your > system profile. I think it is the case for many

Re: bash scripts in Guix question

2022-10-04 Thread Fulbert
Le Tue, Oct 04, 2022 at 03:18:36PM +0200, jordi a écrit : > Hi guixers, Hello! > > i'm wondering...for my scripts to work in Guix, instead of > '#! /bin/bash' , > > what do i have to start them with ? #!/usr/bin/env bash And if you need to pass arguments/options, take a look at $

Re: bash scripts in Guix question

2022-10-04 Thread Olivier Dion via
On Tue, 04 Oct 2022, jordi wrote: > Hi guixers, > > i'm wondering...for my scripts to work in Guix, instead of > '#! /bin/bash' , > Typically the `sh' program should be a symlinked to `bash' in your system profile. I think it is the case for many distro. If you want it to be bulletproof

Re: bash scripts in Guix question

2022-10-04 Thread Ekaitz Zarraga
Hi, > Hi guixers, > > i'm wondering...for my scripts to work in Guix, instead of > '#! /bin/bash' , > > what do i have to start them with ? > > Thanks,thanks, thanks > > F We have a link to bash located in /bin/sh so you can just leave /bin/sh. Or you can also use `#!/usr/bin/env bash`

bash scripts in Guix question

2022-10-04 Thread jordi
Hi guixers, i'm wondering...for my scripts to work in Guix, instead of '#!/bin/bash' , what do i have to start them with ? Thanks,thanks, thanks F