xamarin / mac-samples

Sample programs showing how to use Xamarin.Mac on OSX.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`read: -p no coprocess error output in terminal` when running F# solution in Xamarin Mac

jacqueline-homan opened this issue · comments

nocoprocess
nocoprocess2

And for a sanity check....
xbuild
xbuild2

And I even made sure my gcc compiler was installed...

gcc

Hello @jacqueline-homan, thanks for reporting this issue. We can no longer reproduce it with both headless builds and Xamarin Studio.

I'm closing this issue for now. Let us know if we missed some details.

Situation

There's a read -p 'Press any key to continue...' being given to the shell by Visual Studio, asking the user to signal if they want to continue so that the console window doesn't close right away.

Problem

This is not a cross-shell compatible way of prompting the user.

Complication

If the user has their system shell set to Zsh, this will fail with the read: -p no coprocess error message.

Action

I recommend something like printf 'Press any key to continue...';read ans

Verification

I've toggled my shell to Bash and the same flow causes no error message. I toggled back to Zsh as my default shell and was able to reproduce it. This was reproducible with Visual Studio for Mac 7.0 (build 3146).

My default shell is also zsh and this issue is pretty annoying, please fix it cc @olegoid