You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Implement the use of & to background a command #716
like Bash's; Today the token '&' at the end of a line results in the following:
At line:1 char:4
ls &
~
The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double quotation marks ("&") to pass it as part of a string.
The complete solution Ctrl+Z, job control (fg/bg support) is an uncosted work item and can't be done by MVP (even though we'd absolutely like to do it eventually). Bruce Payette (@BrucePay) is going to cost the full work.
The full solution won't work on Windows (no SIGSTOP/SIGHUP).
If the uncosted "full solution" can't be done by MVP, one option is to just add some syntactic sugar that invokes Start-Process when the & is caught. This would also work on Windows
Another option is to change the current error thrown when a trailing & is used to tell the user to use Start-Process/start. This would also work on Windows.
In the event that the uncosted work is too expensive, would either of these alternatives be acceptable for an MVP?
changed the title [-]I don't think PS can be a functional shell on Linux without implementing &[/-][+]Implement the use of `&` to background a command[/+]on Mar 20, 2017
Sent from my Windows 10 phone
From: Bruce Payette<mailto:notifications@github.com>
Sent: Friday, May 19, 2017 4:16 PM
To: PowerShell/PowerShell<mailto:PowerShell@noreply.github.com>
Cc: Oisin Grehan<mailto:oising@gmail.com>; Comment<mailto:comment@noreply.github.com>
Subject: Re: [PowerShell/PowerShell] Implement the use of `&` to background a command (#716)
This has been merged #3360<#3360>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#716 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ABwjIVzZi9ul-Ls7_tHLVu5fCgGIsI7sks5r7fidgaJpZM4H1PoD>.
Activity
andyleejordan commentedon Mar 21, 2016
Like Bash's background job ampersand, or PowerShell's call operator ampersand? I thought we had the latter.
JamesWTruher commentedon Mar 21, 2016
like Bash's; Today the token '&' at the end of a line results in the following:
At line:1 char:4
The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double quotation marks ("&") to pass it as part of a string.
However, I think that '&' on its own is not as interesting as real job control. It would be nice to take this opportunity to implement that :)
andyleejordan commentedon Mar 21, 2016
Ah, this isn't even supported in full PowerShell. Gotcha.
vors commentedon May 15, 2016
Fish-shell doesn't have this capability.
Related issue in their repo fish-shell/fish-shell#563
joeyaiello commentedon May 16, 2016
Summary of UX sync discussion:
&is caught. This would also work on Windows&is used to tell the user to use Start-Process/start. This would also work on Windows.In the event that the uncosted work is too expensive, would either of these alternatives be acceptable for an MVP?
andyleejordan commentedon May 18, 2016
FWIW the latest insiders build of VS Code forks and execs properly, so it doesn't block the shell.
25 remaining items
[-]I don't think PS can be a functional shell on Linux without implementing &[/-][+]Implement the use of `&` to background a command[/+]BrucePay commentedon May 19, 2017
This has been merged #3360
oising commentedon May 20, 2017