digitalmars.D.bugs - [Issue 7918] New: Crash when using heredoc syntax in DMD v2.05[89] on Win7 [64bit]
- d-bugmail puremagic.com (48/48) Apr 15 2012 http://d.puremagic.com/issues/show_bug.cgi?id=7918
- d-bugmail puremagic.com (10/10) Apr 20 2012 http://d.puremagic.com/issues/show_bug.cgi?id=7918
- d-bugmail puremagic.com (15/15) Apr 20 2012 http://d.puremagic.com/issues/show_bug.cgi?id=7918
- d-bugmail puremagic.com (10/18) Apr 20 2012 http://d.puremagic.com/issues/show_bug.cgi?id=7918
http://d.puremagic.com/issues/show_bug.cgi?id=7918 Summary: Crash when using heredoc syntax in DMD v2.05[89] on Win7 [64bit] Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: redger.liensun gmail.com --- Comment #0 from Redger <redger.liensun gmail.com> 2012-04-15 10:36:48 PDT --- Created an attachment (id=1089) Crash when using heredoc syntax in DMD v2.05[89] on Win7 [64bit] A sample program is attached : I tried to call the powershell, passing a script to get a value. When using a string it works, when using the heredoc syntax to create the string it compiles but then it fails at runtime. PS C:\misc> .\crash.exe std.file.FileException std\file.d(294): 44b7b89aba64d47f8cdf665a20c8b22fe0947a3c0664e7c8dbe730911161fef: The system cannot find the file specified. ---------------- 413670 4134FB 406CA5 402056 4025E8 402622 402243 4342F5 ---------------- Here is the code: string sh = "powershell -Sta -NoProfile -NonInteractive -Command "; //when uncommented the line below works! :) //string script = "$date = get-date; $date.ToString('o');"; //using the heredoc syntax it fails :( string script = q"SCR $date = get-date; $date.ToString('o'); SCR"; //escape script for powershell string cmd = sh~'"'~script~'"'; writeln( "result: " ~ shell(cmd) ); -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Apr 15 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7918 Redger <redger.liensun gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Platform|All |x86_64 OS/Version|All |Windows Severity|normal |minor -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Apr 20 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7918 Dejan Lekic <dejan.lekic gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dejan.lekic gmail.com --- Comment #1 from Dejan Lekic <dejan.lekic gmail.com> 2012-04-20 05:55:39 PDT --- Can you do something like this on Windows 7: C:\work> powershell -Sta -NoProfile -NonInteractive -Command " $date = get-date; $date.ToString('o'); " [ENTER] Can you? -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Apr 20 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7918 --- Comment #2 from Dejan Lekic <dejan.lekic gmail.com> 2012-04-20 05:58:27 PDT --- (In reply to comment #1)Can you do something like this on Windows 7: C:\work> powershell -Sta -NoProfile -NonInteractive -Command " $date = get-date; $date.ToString('o'); " [ENTER] Can you?Actually, it is like this: C:\work> powershell -Sta -NoProfile -NonInteractive -Command "$date = get-date; $date.ToString('o'); " [ENTER] -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Apr 20 2012