Article: Why I use the D programming language for scripting

Paul Backus snarwin at gmail.com
Mon Feb 1 12:41:19 UTC 2021


On Monday, 1 February 2021 at 12:11:46 UTC, Petar Kirov 
[ZombineDev] wrote:
> On Monday, 1 February 2021 at 11:10:28 UTC, Paul Backus wrote:
>> Unfortunately, you can't pass more than one command-line 
>> argument on a #! line.
>
> It is possible, using `/usr/bin/env -S command arg1 arg2` , as 
> of coreutils 8.30. I have been using it at work and it's 
> working perfectly. This functionality was already supported by 
> FreeBSD [1] for ~15 years, but the coreutils developers 
> implemented it just ~3 years ago [2].

This is great, thanks!

I just checked, and it's available in Debian stable, so most 
distros should have it by now.


More information about the Digitalmars-d-announce mailing list