February 14, 2006 Re: DMD 0.146 release | ||||
---|---|---|---|---|
| ||||
Posted in reply to Nick Attachments: | Nick wrote:
> In article <dshdns$a6s$1@digitaldaemon.com>, Walter Bright says...
>
>>Added features to make D useable as a scripting language on unix.
>>
>>http://www.digitalmars.com/d/changelog.html
>
> Thanks for a(nother) great update! However, scripting (#! at the first line)
> doesn't seem to work correctly. I assume I am supposed to supply the -run
> parameter, but consider a file that contains
>
> #!/usr/bin/dmd -run
>
> The actual command exectued is "/usr/bin/dmd -run filename.d", where filename.d is parsed as an argument to -run.
I've included a shell script that we use in-house. Merely putting it in your $HOME/bin lets you use D programs as genuine shell scripts. And without the .d suffix. We've been using it for quite a while since I first showed it in this ng.
|
February 16, 2006 Re: DMD 0.146 release | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | > I imagine something analogous would work with Linux, but I haven't investigated it. I guess I can implement backtrace into linux & gdc. But on Linux, we can get backtrace with gdb easily. So, is it needed? ------------------ shinichiro.h hamaji _at_ nii.ac.jp http://shinh.skr.jp/ |
February 16, 2006 Re: DMD 0.146 release | ||||
---|---|---|---|---|
| ||||
Posted in reply to shinichiro.h | On Thu, 16 Feb 2006 12:39:31 +0900, shinichiro.h <s31552@mail.ecc.u-tokyo.ac.jp> wrote: >> I imagine something analogous would work with Linux, but I haven't >> investigated it. > > I guess I can implement backtrace into linux & gdc. But on Linux, > we can get backtrace with gdb easily. So, is it needed? Yes. Customers/Users do not always know how to use gdb and produce a backtrace, being able to do it ourselves is useful. Regan |
Copyright © 1999-2021 by the D Language Foundation