/*1* Copyright 2017 Jactry Zeng for CodeWeavers2*3* This library is free software; you can redistribute it and/or4* modify it under the terms of the GNU Lesser General Public5* License as published by the Free Software Foundation; either6* version 2.1 of the License, or (at your option) any later version.7*8* This library is distributed in the hope that it will be useful,9* but WITHOUT ANY WARRANTY; without even the implied warranty of10* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU11* Lesser General Public License for more details.12*13* You should have received a copy of the GNU Lesser General Public14* License along with this library; if not, write to the Free Software15* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA16*/1718#include "wine/debug.h"1920WINE_DEFAULT_DEBUG_CHANNEL(powershell);2122int __cdecl wmain(int argc, WCHAR *argv[])23{24int i;2526WINE_FIXME("stub.\n");27for (i = 0; i < argc; i++)28{29WINE_FIXME("argv[%d] %s\n", i, wine_dbgstr_w(argv[i]));30if (!wcsicmp(argv[i], L"-command") && i < argc - 1 && !wcscmp(argv[i + 1], L"-"))31{32char command[4096], *p;3334++i;35while (fgets(command, sizeof(command), stdin))36{37WINE_FIXME("command %s.\n", debugstr_a(command));38p = command;39while (*p && !isspace(*p)) ++p;40*p = 0;41if (!stricmp(command, "exit"))42break;43}44}45}46return 0;47}484950