Re: Release D v2.076.1

2017-10-12 Thread Adam Wilson via Digitalmars-d-announce
On 10/12/17 19:50, Jonathan M Davis wrote: On Thursday, October 12, 2017 14:39:27 b4s1L3 via Digitalmars-d-announce wrote: Also i'd like to say that the policy that is that regression fixes are commited on stable and that the fact that they only come to master in a "sync operation" is a

Re: My first experience as a D Newbie

2017-10-12 Thread bauss via Digitalmars-d
On Wednesday, 11 October 2017 at 17:55:18 UTC, Steven Schveighoffer wrote: On 10/11/17 1:42 PM, WhatMeWorry wrote: On Wednesday, 11 October 2017 at 07:23:02 UTC, Peter R wrote: [...] +10  We need a walkthru of how to set up everything. It's like a new cook being give all the ingredients but

Re: Enum AA with classes not allowed anymore?

2017-10-12 Thread bauss via Digitalmars-d
On Wednesday, 11 October 2017 at 17:40:15 UTC, Jonathan M Davis wrote: On Wednesday, October 11, 2017 17:05:19 Daniel Kozak via Digitalmars-d wrote: so you can try to use static immutable insted of enum Yeah. Similarly, you could just have a regular function that you call at compile time

Re: Will D continu to live after walter death?

2017-10-12 Thread bauss via Digitalmars-d
On Thursday, 12 October 2017 at 15:04:57 UTC, moechofe wrote: What is the wanted lifetime of the project? Is D will manage to pass through time? It is valuable to start a 40 years old project using D? Yes, because the project belongs to the D Foundation and not just Walter himself.

Re: Release D v2.076.1

2017-10-12 Thread Jonathan M Davis via Digitalmars-d-announce
On Thursday, October 12, 2017 14:39:27 b4s1L3 via Digitalmars-d-announce wrote: > Also i'd like to say that the policy that is that regression > fixes are commited on stable and that the fact that they only > come to master in a "sync operation" is a problem. > > In the travis yaml we have to

Re: Fast removal of character

2017-10-12 Thread Laeeth Isharc via Digitalmars-d-learn
On Wednesday, 11 October 2017 at 22:22:43 UTC, Johan Engelen wrote: std.string.removechars is now deprecated. https://dlang.org/changelog/2.075.0.html#pattern-deprecate What is now the most efficient way to remove characters from a string, if only one type of character needs to be removed?

Re: Get and add to function body

2017-10-12 Thread Jonathan M Davis via Digitalmars-d-learn
On Thursday, October 12, 2017 23:33:39 Psychological Cleanup via Digitalmars-d-learn wrote: > Is there any way to get the function body of a function, > delegate, and lambda? I'd also like to extend functions by > "wrapping" them at compile time generically. For example, I'd > like to get all the

Re: Assert and undefined behavior

2017-10-12 Thread Jonathan M Davis via Digitalmars-d-learn
On Thursday, October 12, 2017 21:22:29 kdevel via Digitalmars-d-learn wrote: > On Thursday, 12 October 2017 at 20:27:03 UTC, Jonathan M Davis > > wrote: > > On Thursday, October 12, 2017 20:15:41 kdevel via > > > >> --- > >> void main () > >> { > >> > >> assert (false); > >> > >> } > >> --- >

Re: Alias on an array element

2017-10-12 Thread Meta via Digitalmars-d-learn
On Friday, 13 October 2017 at 01:12:38 UTC, solidstate1991 wrote: On Friday, 13 October 2017 at 01:09:56 UTC, solidstate1991 wrote: I'm making a struct for easy color handling Here's a code sample: ublic struct Color{ union{ uint raw; ///Raw representation in integer form, also

Re: Will D continu to live after walter death?

2017-10-12 Thread Andrew Edwards via Digitalmars-d
On Thursday, 12 October 2017 at 15:04:57 UTC, moechofe wrote: What is the wanted lifetime of the project? Is D will manage to pass through time? It is valuable to start a 40 years old project using D? DMD, LDC, and GDC are all open source. So I guess the question would be: If everyone else

Re: Alias on an array element

2017-10-12 Thread solidstate1991 via Digitalmars-d-learn
On Friday, 13 October 2017 at 01:09:56 UTC, solidstate1991 wrote: I'm making a struct for easy color handling Here's a code sample: ublic struct Color{ union{ uint raw; ///Raw representation in integer form, also forces the system to align in INT32. ubyte[4] colors; ///Normal

Alias on an array element

2017-10-12 Thread solidstate1991 via Digitalmars-d-learn
I'm making a struct for easy color handling Here's a code sample: ublic struct Color{ union{ uint raw; ///Raw representation in integer form, also forces the system to align in INT32. ubyte[4] colors; ///Normal representation, aliases are used for color naming.

Re: My first experience as a D Newbie

2017-10-12 Thread Dennis Cote via Digitalmars-d
On Thursday, 12 October 2017 at 07:48:09 UTC, Vadim Lopatin wrote: Could you please submit issue on https://github.com/buggins/dlangide/issues Done. https://github.com/buggins/dlangide/issues/349

Implicit Constructors

2017-10-12 Thread Q. Schroll via Digitalmars-d
We have some sort of implicit construction already. Weirdly, it's reserved for classes. Just look at this: class C { this(int x) { } } void foo(C c ...) { } void main() { foo(0); } If you put @nogc in front of ctor and functions, the compiler tells you not to use 'new' in main

Re: Get and add to function body

2017-10-12 Thread Psychological Cleanup via Digitalmars-d-learn
I'd also like to be able to save and store delegates, functions, and lambdas. One can't store the pointer to the function because it will be invalid, so another means is required, any ideas? Save("f", (int){ ... }); // Saves to disk auto f = Load("f"); // Loads from disk f(3);

Get and add to function body

2017-10-12 Thread Psychological Cleanup via Digitalmars-d-learn
Is there any way to get the function body of a function, delegate, and lambda? I'd also like to extend functions by "wrapping" them at compile time generically. For example, I'd like to get all the properties of a class and add some code to them(sort of like adding a scope, prolog, and/or

Re: Undo?

2017-10-12 Thread Jesse Phillips via Digitalmars-d-learn
On Thursday, 12 October 2017 at 02:18:49 UTC, Mr. Jonse wrote: A simple(incomplete) undo system. I'd think that for D you'd want to do type wrapping where a new type is created which saves changes and can manage an Undo tree. __gshared Data data = new Data(); auto undoable =

Re: Undo?

2017-10-12 Thread bitwise via Digitalmars-d-learn
On Tuesday, 10 October 2017 at 02:36:56 UTC, Mr. Jonse wrote: I requiring an undo feature in my code. Rather than go the regular route of using commands, I'm wondering if D can facilitate an undo system quite easily? We can think of an undo system in an app as a sort of recorder. The

Re: Assert and undefined behavior

2017-10-12 Thread kdevel via Digitalmars-d-learn
On Thursday, 12 October 2017 at 20:27:03 UTC, Jonathan M Davis wrote: On Thursday, October 12, 2017 20:15:41 kdevel via --- void main () { assert (false); } --- qualifies as "invalid, and therefore has undefined behaviour." A statement, which makes no sense to me. Either it is a

[Issue 17887] Add WebAssembly reserved version identifier

2017-10-12 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17887 ZombineDev changed: What|Removed |Added Status|RESOLVED|REOPENED

[Issue 17886] [Tracker] WebAssembly support

2017-10-12 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17886 Issue 17886 depends on issue 17887, which changed state. Issue 17887 Summary: Add WebAssembly reserved version identifier https://issues.dlang.org/show_bug.cgi?id=17887 What|Removed |Added

Re: Why do I have to cast arguments from int to byte?

2017-10-12 Thread kdevel via Digitalmars-d-learn
On Wednesday, 11 October 2017 at 07:09:26 UTC, Daniel Kozak wrote: You can avoid cast: void foo(T)(T bar){...} byte bar = 9; foo!byte(bar + byte(1)); Sure? --- void foo(T)(T bar) { } byte bar = 9; void main () { foo!byte(bar + byte(1)); } --- byte2.d(7): Error: function

[Issue 17886] [Tracker] WebAssembly support

2017-10-12 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17886 Issue 17886 depends on issue 17887, which changed state. Issue 17887 Summary: Add WebAssembly reserved version identifier https://issues.dlang.org/show_bug.cgi?id=17887 What|Removed |Added

[Issue 17887] Add WebAssembly reserved version identifier

2017-10-12 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17887 ZombineDev changed: What|Removed |Added Status|REOPENED|RESOLVED

Re: Assert and undefined behavior

2017-10-12 Thread Jonathan M Davis via Digitalmars-d-learn
On Thursday, October 12, 2017 20:15:41 kdevel via Digitalmars-d-learn wrote: > On Thursday, 12 October 2017 at 15:37:23 UTC, John Burton wrote: > > C++ compilers can and do perform such optimizations so I was > > wondering if assert in D could cause such behavior according to > > the spec. > > In

Re: Assert and undefined behavior

2017-10-12 Thread kdevel via Digitalmars-d-learn
On Thursday, 12 October 2017 at 15:37:23 UTC, John Burton wrote: C++ compilers can and do perform such optimizations so I was wondering if assert in D could cause such behavior according to the spec. In the context of ISO-C++ it is meaningless to reason about the "actual behavior" of a

[Issue 17887] Add WebAssembly reserved version identifier

2017-10-12 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17887 --- Comment #3 from github-bugzi...@puremagic.com --- Commit pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/8cd923389443cb018feadb1b0b91598cf6b9cc53 Fix issue 17887 - Add AsmJS, Emscripten and WebAssembly

[Issue 17886] [Tracker] WebAssembly support

2017-10-12 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17886 Issue 17886 depends on issue 17887, which changed state. Issue 17887 Summary: Add WebAssembly reserved version identifier https://issues.dlang.org/show_bug.cgi?id=17887 What|Removed |Added

Re: Does D have an equivalent to C#'s String.IsNullOrWhiteSpace?

2017-10-12 Thread Daniel Kozak via Digitalmars-d-learn
Wow, C# is really wierd. They have method IsNullOrEmpty (OK why not), but they have IsNullOrWhiteSpace OK little akward but still OK until you realized it is more like IsNullOrEmptyOrWhiteSpace :D On Thu, Oct 12, 2017 at 8:11 PM, Nieto via Digitalmars-d-learn < digitalmars-d-learn@puremagic.com>

Re: Proposal: Object/?? Destruction

2017-10-12 Thread Timon Gehr via Digitalmars-d
On 10.10.2017 17:05, Steven Schveighoffer wrote: On 10/9/17 11:22 AM, Timon Gehr wrote: On 09.10.2017 01:20, Steven Schveighoffer wrote: My questioning comes with this: void bar(int a); void bar((int,) x); To me, it is confusing or at least puzzling that these two aren't the same. ...

Re: Does D have an equivalent to C#'s String.IsNullOrWhiteSpace?

2017-10-12 Thread Jesse Phillips via Digitalmars-d-learn
On Thursday, 12 October 2017 at 18:17:54 UTC, Adam D. Ruppe wrote: On Thursday, 12 October 2017 at 18:11:55 UTC, Nieto wrote: Does D have an equivalent to C#'s String.IsNullOrWhiteSpace() in the standard library? import std.string; if(str.strip().length == 0) { // is null, empty, or all

Re: Does D have an equivalent to C#'s String.IsNullOrWhiteSpace?

2017-10-12 Thread Adam D. Ruppe via Digitalmars-d-learn
On Thursday, 12 October 2017 at 18:11:55 UTC, Nieto wrote: Does D have an equivalent to C#'s String.IsNullOrWhiteSpace() in the standard library? import std.string; if(str.strip().length == 0) { // is null, empty, or all whitespace }

Does D have an equivalent to C#'s String.IsNullOrWhiteSpace?

2017-10-12 Thread Nieto via Digitalmars-d-learn
Does D have an equivalent to C#'s String.IsNullOrWhiteSpace() in the standard library? just asking if there's a native one, so I don't need reinvente the wheel https://msdn.microsoft.com/en-us/library/system.string.isnullorwhitespace%28v=vs.110%29.aspx?f=255=-2147217396

Re: iopipe alpha 0.0.1 version

2017-10-12 Thread Steven Schveighoffer via Digitalmars-d-announce
On 10/12/17 3:05 AM, Jacob Carlborg wrote: On 2017-10-12 06:22, Steven Schveighoffer wrote: I also want to add generated documentation. Does anyone know of a good way to generate the ddoc (or ddox or whatever) and put it directly into the repository for github to serve? Would be an awesome

Re: Multiline string literal improvements

2017-10-12 Thread Meta via Digitalmars-d
On Thursday, 12 October 2017 at 08:08:17 UTC, Igor wrote: I tried this but Disassembly view shows: call std.regex.regex!string.regex and call std.regex.replaceAll!(string, char, std.regex.internal.ir.Regex!char).replaceAll which means that replaceAll with regex is done at runtime, not

Re: Phobos' Windows Makefile

2017-10-12 Thread Jacob Carlborg via Digitalmars-d
On 2017-10-12 13:51, Eduard Staniloiu wrote: I'm not convinced it's faster, as making a change in one of the bundled files will cause all the files in the object bundle to get recompiled, instead of compiling only the changed file and linking the objects. This is for full builds. And since

Re: Will D continu to live after walter death?

2017-10-12 Thread Andrea Fontana via Digitalmars-d
On Thursday, 12 October 2017 at 15:04:57 UTC, moechofe wrote: What is the wanted lifetime of the project? Is D will manage to pass through time? It is valuable to start a 40 years old project using D? Of course. In 40years Walter will be alive.

Re: Assert and undefined behavior

2017-10-12 Thread John Burton via Digitalmars-d-learn
On Thursday, 12 October 2017 at 14:22:43 UTC, Timon Gehr wrote: On 11.10.2017 11:27, John Burton wrote: Yes, that's what it is saying. (The other answers, that say or try to imply that this is not true or true but not a bad thing, are wrong.) ... However, in practice, I think none of the

Will D continu to live after walter death?

2017-10-12 Thread moechofe via Digitalmars-d
What is the wanted lifetime of the project? Is D will manage to pass through time? It is valuable to start a 40 years old project using D?

Re: Release D v2.076.1

2017-10-12 Thread b4s1L3 via Digitalmars-d-announce
On Thursday, 12 October 2017 at 14:20:42 UTC, b4s1L3 wrote: On Wednesday, 11 October 2017 at 13:38:10 UTC, b4s1L3 wrote: On Wednesday, 11 October 2017 at 13:08:38 UTC, Petar Kirov [ZombineDev] wrote: On Wednesday, 11 October 2017 at 10:20:01 UTC, b4s1L3 wrote: On Monday, 9 October 2017 at

Re: Release D v2.076.1

2017-10-12 Thread b4s1L3 via Digitalmars-d-announce
On Wednesday, 11 October 2017 at 13:38:10 UTC, b4s1L3 wrote: On Wednesday, 11 October 2017 at 13:08:38 UTC, Petar Kirov [ZombineDev] wrote: On Wednesday, 11 October 2017 at 10:20:01 UTC, b4s1L3 wrote: On Monday, 9 October 2017 at 19:44:24 UTC, Martin Nowak wrote: Glad to announce D v2.076.1.

Re: Assert and undefined behavior

2017-10-12 Thread Timon Gehr via Digitalmars-d-learn
On 11.10.2017 11:27, John Burton wrote: The spec says this :- "As a contract, an assert represents a guarantee that the code must uphold. Any failure of this expression represents a logic error in the code that must be fixed in the source code. A program for which the assert contract is

[Issue 4582] distinct field names constraint for std.typecons.Tuple

2017-10-12 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4582 --- Comment #3 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/4e8fa84ba227b2ff4662b2e2fcdeca57074bc2fd Fix Issue 4582 - distinct field names constraint for

[Issue 4582] distinct field names constraint for std.typecons.Tuple

2017-10-12 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4582 github-bugzi...@puremagic.com changed: What|Removed |Added Status|ASSIGNED|RESOLVED

Re: iopipe alpha 0.0.1 version

2017-10-12 Thread Steven Schveighoffer via Digitalmars-d-announce
On 10/12/17 1:48 AM, Dmitry Olshansky wrote: On Thursday, 12 October 2017 at 04:22:01 UTC, Steven Schveighoffer wrote: I added a tag for iopipe and added it to the dub registry so people can try it out. I didn't want to add it until I had fully documented and unittested it.

Re: Phobos' Windows Makefile

2017-10-12 Thread Eduard Staniloiu via Digitalmars-d
On Thursday, 12 October 2017 at 07:17:15 UTC, Jacob Carlborg wrote: On 2017-10-11 21:57, Eduard Staniloiu wrote: Hello, I've hit the following problem on this PR [0]: The Windows 32bit build fails with the error: "more than 32767 symbols in object file" [1]. After taking a look in

Re: D's open source approach

2017-10-12 Thread jmh530 via Digitalmars-d
On Thursday, 12 October 2017 at 07:54:19 UTC, Joakim wrote: By the reasoning in the essay, I don't expect this to be solved for free: the solution is for the devs behind the IDEs, Visual Studio, DlangIDE, etc., to charge money for a streamlined process. Why hasn't this happened yet? There

Re: My first experience as a D Newbie

2017-10-12 Thread jmh530 via Digitalmars-d
On Thursday, 12 October 2017 at 08:20:45 UTC, Jonathan M Davis wrote: But overall, I don't think that the Windows situation with D is really all that much worse than what you get on Linux. It's just that the folks running Windows have a tendency to care a ton about stuff like IDEs that the

Re: My first experience as a D Newbie

2017-10-12 Thread jmh530 via Digitalmars-d
On Thursday, 12 October 2017 at 10:29:31 UTC, Rion wrote: I know but this illustrates the OP his point. Do you see a warning tell people they can need to use fetch? Its the small details that can made the experience much more nice but because everybody here is such D experts, they can not

Re: Advertise D's great compatibilty with JavaScript

2017-10-12 Thread Ecstatic Coder via Digitalmars-d
On Sunday, 18 June 2017 at 10:38:49 UTC, Ecstatic Coder wrote: Something I really appreciate a lot with D is how close it is to JavaScript. For instance, I have to maintain two similar versions of Pendown, a Markdown alternative for colored documents. There is a server-side version, in D :

Re: My first experience as a D Newbie

2017-10-12 Thread Rion via Digitalmars-d
On Thursday, 12 October 2017 at 01:26:33 UTC, jmh530 wrote: On Wednesday, 11 October 2017 at 22:23:12 UTC, Rion wrote: On Wednesday, 11 October 2017 at 18:29:38 UTC, qznc wrote: At least on Ubuntu, this gives me an IDE: dub run dlangide I have not used it much and I don't know if it works

[Issue 6409] std.array.empty for associative arrays too

2017-10-12 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6409 --- Comment #5 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/bf1c17838214d596f6e388929ad7e22147ba09f8 Fix Issue 6409 - std.array.empty for associative arrays

Re: My first experience as a D Newbie

2017-10-12 Thread Vadim Lopatin via Digitalmars-d
On Thursday, 12 October 2017 at 03:50:31 UTC, Dennis Cote wrote: On Thursday, 12 October 2017 at 01:26:33 UTC, jmh530 wrote: You have to fetch it first if you don't already have it: dub fetch dlangide dub run dlangide Of course, you might still have an issue... I still have an issue on

Re: My first experience as a D Newbie

2017-10-12 Thread Dmitry via Digitalmars-d
On Thursday, 12 October 2017 at 08:20:45 UTC, Jonathan M Davis wrote: I think that he meant that most of the developers for dmd and the standard library run *nix systems Ah, you're right. I have misunderstood a bit.

Re: My first experience as a D Newbie

2017-10-12 Thread Jonathan M Davis via Digitalmars-d
On Thursday, October 12, 2017 08:05:04 Dmitry via Digitalmars-d wrote: > On Wednesday, 11 October 2017 at 22:20:01 UTC, Rion wrote: > > Its probably more the fact that most of the developers use Unix > > based system for development, be it OSx or Linux. As a result > > Windows is the overlooked

Re: My first experience as a D Newbie

2017-10-12 Thread Dmitry via Digitalmars-d
On Wednesday, 11 October 2017 at 22:20:01 UTC, Rion wrote: Its probably more the fact that most of the developers use Unix based system for development, be it OSx or Linux. As a result Windows is the overlooked system what results in a lack of testing. I already posted some statistic: A

Re: Multiline string literal improvements

2017-10-12 Thread Igor via Digitalmars-d
On Wednesday, 11 October 2017 at 14:28:32 UTC, Meta wrote: On Wednesday, 11 October 2017 at 09:56:52 UTC, Igor wrote: On Wednesday, 11 October 2017 at 08:35:51 UTC, Walter Bright wrote: On 10/10/2017 3:16 PM, sarn wrote: Works even better in D because it can run at compile time. Yes, I see

D's open source approach

2017-10-12 Thread Joakim via Digitalmars-d
I just stumbled across an 18-year old essay, by an economist and one-time tech entrepreneur written during the dot.com boom, about open source and its properties, and this paragraph particularly reminded me of D, especially the bit about the mailing list which we're anachronistically still

Re: My first experience as a D Newbie

2017-10-12 Thread Vadim Lopatin via Digitalmars-d
On Thursday, 12 October 2017 at 05:02:40 UTC, Dennis Cote wrote: On Thursday, 12 October 2017 at 03:50:31 UTC, Dennis Cote wrote: This time it runs but displays a window full of micro sized text and icons. It is barely readable. I figured out dlangide assumes a DPI setting of 96 which

Re: My first experience as a D Newbie

2017-10-12 Thread Jacob Carlborg via Digitalmars-d
On 2017-10-12 07:27, Jesse Phillips wrote: I don't think this is true at all. I recall people getting frustrated and blaming it one Linux support being second class to windows. I think that was true long time ago, but not anymore. DMD started out on Windows, since that's Walter's main

Re: Phobos' Windows Makefile

2017-10-12 Thread Jacob Carlborg via Digitalmars-d
On 2017-10-11 21:57, Eduard Staniloiu wrote: Hello, I've hit the following problem on this PR [0]: The Windows 32bit build fails with the error: "more than 32767 symbols in object file" [1]. After taking a look in `win32.mak`, I've seen that we are bundling multiple source files into a

Re: My first experience as a D Newbie

2017-10-12 Thread Jacob Carlborg via Digitalmars-d
On 2017-10-11 19:55, Steven Schveighoffer wrote: I have to say as someone who uses mostly non-windows systems, these problems only seem to crop up for Windows developers. I don't know if it's a different expectation or a different mindset or something else. In my experience it's more

Re: Multiline string literal improvements

2017-10-12 Thread Jacob Carlborg via Digitalmars-d
On 2017-10-11 10:35, Walter Bright wrote: On 10/10/2017 3:16 PM, sarn wrote: Works even better in D because it can run at compile time. Yes, I see no need for a language feature what can be easily and far more flexibly done with a regular function - especially since what |q{ and -q{ do

Re: iopipe alpha 0.0.1 version

2017-10-12 Thread Jacob Carlborg via Digitalmars-d-announce
On 2017-10-12 06:22, Steven Schveighoffer wrote: I also want to add generated documentation. Does anyone know of a good way to generate the ddoc (or ddox or whatever) and put it directly into the repository for github to serve? Would be an awesome tip for people making projects for

Re: Dustmite always reduced to empty set after two iterations

2017-10-12 Thread Jacob Carlborg via Digitalmars-d-learn
On 2017-10-11 22:36, Nordlöw wrote: My first idea is to make stderr "core dumped" the invariant. Therefore my first try becomes to redirect stderr to stdout (in bash) and grep for the pattern 'core dumped' as follows IIRC, segmentation faults are printed by the shell and not the