February 12, 2004 Re: D in Linux | ||||
---|---|---|---|---|
| ||||
Posted in reply to Russ Lewis | "Russ Lewis" <spamhole-2001-07-16@deming-os.org> wrote in message news:c0glon$1r5i$1@digitaldaemon.com... > Walter wrote: > > _d_assert is defined by module std.asserterror, and it should be in the library. > > > > (To find where names are defined, the following is very handy: > > cd \dmd\src\phobos > > grep -r d_assert *.d > > ) > > Just a minor clarification: the command should be > grep -r d_assert . > With -r (recurse), grep takes directories as arguments. You can pass it > files as arguments, but it won't recurse into directories unles you give > them on the command line. Linux grep does work like that, you're right, but the win32 grep that I wrote works like the former <g>. In any case, grep is an underappreciated utility. |
February 12, 2004 Re: D in Linux | ||||
---|---|---|---|---|
| ||||
Posted in reply to Russ Lewis | One more addition grep -rn d_assert . gives line numbers also very handy :). C "Russ Lewis" <spamhole-2001-07-16@deming-os.org> wrote in message news:c0glon$1r5i$1@digitaldaemon.com... > Walter wrote: > > _d_assert is defined by module std.asserterror, and it should be in the library. > > > > (To find where names are defined, the following is very handy: > > cd \dmd\src\phobos > > grep -r d_assert *.d > > ) > > Just a minor clarification: the command should be > grep -r d_assert . > With -r (recurse), grep takes directories as arguments. You can pass it > files as arguments, but it won't recurse into directories unles you give > them on the command line. > > Russ > |
Copyright © 1999-2021 by the D Language Foundation