Re: bash < execline > bash

2016-05-01 Thread Eric Vidal
On Sun, 1 May 2016 12:34:07 +0200 Laurent Bercot wrote: > On 01/05/2016 12:26, Eric Vidal wrote: > > One more question, my knowledge is not sufficient to understand this > > following command : > > unexport ? > > i'm not understand the ? here > > ? is the environment

Re: bash < execline > bash

2016-05-01 Thread Laurent Bercot
On 01/05/2016 12:26, Eric Vidal wrote: One more question, my knowledge is not sufficient to understand this following command : unexport ? i'm not understand the ? here ? is the environment variable set by the "foreground" command. It holds the exit code of the command run in the foreground

Re: bash < execline > bash

2016-05-01 Thread Eric Vidal
On Sun, 1 May 2016 01:00:11 -0700 Colin Booth wrote: > On Sat, Apr 30, 2016 at 10:45 PM, Eric Vidal wrote: > > It is possible to have a zsh/bash and execlineb syntax on the same file? > With some work yes. By default any execline script plays nice with >

bash < execline > bash

2016-04-30 Thread Eric Vidal
Hello, It is possible to have a zsh/bash and execlineb syntax on the same file? For example : #!/bin/execlineb -P if [ -d /run/example ]; then s6-mkdir -m 0755 /run/example fi or #!/bin/execlineb -P if { s6-test -d /run/example } mkdir -m 0755 /run/example Regards -- Eric Vidal