Re: [Fish-users] Putting a series of commands in the background

2014-11-05 Thread Greg Reagle
On 11/05/2014 01:53 PM, Siteshwar wrote: > If you fork a new fish process it will have different environment > then it's parent process for e.g. local and global variables which > are not exported are not available to new fish process. So this > approach may or may not work depending on user requir

Re: [Fish-users] Putting a series of commands in the background

2014-11-05 Thread Tobias Mueller
Hi! On Thu, Nov 06, 2014 at 12:13:56AM +0530, Siteshwar wrote: > Yes. We have implemented a new parser after fish 2.1 and this statement > does not give a syntax error with it. Cool! Thanks! Glad to see that. Tobi -- __

Re: [Fish-users] Putting a series of commands in the background

2014-11-05 Thread Siteshwar
On Fri, Oct 31, 2014 at 12:18 AM, Greg Reagle wrote: > On Thu, Oct 30, 2014, at 02:13 PM, Siteshwar wrote: > > It is a known issue > > https://github.com/fish-shell/fish-shell/issues/563 > > Thanks for that. > > The syntax error that I reported is a known issue at > https://github.com/fish-shell/

Re: [Fish-users] Putting a series of commands in the background

2014-11-05 Thread Siteshwar
On Thu, Nov 6, 2014 at 12:01 AM, Tobias Mueller wrote: > Hi. > > On Thu, Oct 30, 2014 at 12:32:24PM -0400, Glenn Jackman wrote: > > begin; sleep 10; and beep; end & > > > > should do it. > I agree. > It does not work, however, for me. > > begin; sleep 10; and beep; end & > > fish: Could not locat

Re: [Fish-users] Putting a series of commands in the background

2014-11-05 Thread Tobias Mueller
Hi. On Thu, Oct 30, 2014 at 12:41:06PM -0400, Greg Reagle wrote: > I found a way to make it work calling fish explicitly: > fish -c 'sleep 10; and beep' & :-\ That's semi-optimal, I think. May I conclude that the desired functionality is currently not offered by fish? Is this intentional or

Re: [Fish-users] Putting a series of commands in the background

2014-11-05 Thread Tobias Mueller
Hi. On Thu, Oct 30, 2014 at 12:32:24PM -0400, Glenn Jackman wrote: > begin; sleep 10; and beep; end & > > ​should do it.​ I agree. It does not work, however, for me. begin; sleep 10; and beep; end & fish: Could not locate end of block. The “end” c

Re: [Fish-users] Putting a series of commands in the background

2014-10-30 Thread Greg Reagle
On Thu, Oct 30, 2014, at 02:13 PM, Siteshwar wrote: > It is a known issue > https://github.com/fish-shell/fish-shell/issues/563 Thanks for that. The syntax error that I reported is a known issue at https://github.com/fish-shell/fish-shell/issues/761. Looks like it was fixed 23 days ago. As far

Re: [Fish-users] Putting a series of commands in the background

2014-10-30 Thread Siteshwar
On Thu, Oct 30, 2014 at 10:56 PM, Cedric Auger wrote: > begin; sleep 10; and echo "beep"; end > > works in my version, but appending '&' does not change the behaviour. > > I thought, that this was due to the fact that "begin;" was parsed before > "&", so I tried to "cheat" by using "eval": > > ev

Re: [Fish-users] Putting a series of commands in the background

2014-10-30 Thread Cedric Auger
begin; sleep 10; and echo "beep"; end works in my version, but appending '&' does not change the behaviour. I thought, that this was due to the fact that "begin;" was parsed before "&", so I tried to "cheat" by using "eval": eval "sleep 10; and echo \"beep\"" & but, although "sleep 10; and echo

Re: [Fish-users] Putting a series of commands in the background

2014-10-30 Thread Greg Reagle
On Thu, Oct 30, 2014, at 12:32 PM, Glenn Jackman wrote: > begin; sleep 10; and beep; end & > > ​should do it.​ I get a syntax error with fish 2.1.1: fish: Could not locate end of block. The “end” command is missing, misspelled or a “;” is missing. -- http://www.fastmail.fm - Or how I learned to

Re: [Fish-users] Putting a series of commands in the background

2014-10-30 Thread Greg Reagle
That's a great question. Thanks for asking it. I have fish 2.1.1. I thought that using a begin/end block would be the way to do this, but that is a synatx error. Then I put the code into a function, and that didn't work either--not a syntax error, but it waited for the sleep to finish before sho

Re: [Fish-users] Putting a series of commands in the background

2014-10-30 Thread Glenn Jackman
begin; sleep 10; and beep; end & ​should do it.​ On Tue, Oct 28, 2014 at 9:27 AM, Tobias Mueller wrote: > Hi everyone. > > I am intending to do something like this: > > sleep 10; and beep & > > i.e. put a rather long running series of commands in the background. > > With my fish 2.0.0,