So I was just taking a look at the example posted on the dlang website here: http://dlang.org/rdmd.html and was looking to do something like the second version where you define #!/usr/bin/env rdmd as the first line of your file. I copied and pasted the exact copy of what they have there just to try it out and everytime I try to do ./myprog.d I get: : No such file or directory
What am I missing here? If I run rdmd ./myprog.d it works just fine so I know rdmd is in the proper path
chmod +x myprog.d, though if you didn't I think the error would b e permission denied rather than no such file... another thing to check is if the/usr/bin/envcommand actually runs on your system. You might be better off just putting the direct path to your rdmd in there like#!/home/me/dmd2/linux/bin32/rdmdis how I'd do it on my computer./usr/bin/envis on my system and I can do/usr/bin/env rdmd myproog.dand it works fine. Putting the absolute path does not work as bash complains that its a bad interpreter.echo $PATH:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/me/.local/bin:/home/me/binwhich rdmd:/usr/bin/rdmd