Hi,
Can someone give me a clue on why nothing is printed to stdout ?
I wish a list of files with their size.
code:
//
import std.stdio;
import std.file;
void main(string[] args)
{
foreach (DirEntry e; dirEntries(".", SpanMode.shallow))
{
writeln(e.name, "\t", e.size);
}
}
/
On 30.10.2011 11:00, Frédéric Galusik wrote:
Hi,
Can someone give me a clue on why nothing is printed to stdout ?
I wish a list of files with their size.
code:
//
import std.stdio;
import std.file;
void main(string[] args)
{
foreach (DirEntry e; dirEntries(".", SpanMode.shallow))
{
Le Sun, 30 Oct 2011 12:17:24 +0100, simendsjo a écrit :
> Works for me on 2.055 and 2.056 on windows. What compiler and OS are you
> using?
>
> c:\temp>dmd -w test.d
> c:\temp>test|more
> .\.a.d.un~ 5326
> .\.asciidoc_user-guide.txt.un~ 942
> (...)
Tested with dmd 2.055 and now 2.056 on Li
On Sun, 30 Oct 2011 10:00:21 +, Frédéric Galusik wrote:
> Hi,
>
> Can someone give me a clue on why nothing is printed to stdout ?
>
> I wish a list of files with their size.
>
> code:
> //
> import std.stdio;
> import std.file;
>
> void main(string[] args)
> {
> foreach (DirEntry e;
"Frédéric Galusik" wrote in message
news:j8j77l$pfv$1...@digitalmars.com...
> Hi,
>
> Can someone give me a clue on why nothing is printed to stdout ?
>
> I wish a list of files with their size.
>
> code:
> //
> import std.stdio;
> import std.file;
>
> void main(string[] args)
> {
>foreach (D
"Nick Sabalausky" wrote in message
news:j8kd11$25v1$1...@digitalmars.com...
> "Frédéric Galusik" wrote in message
> news:j8j77l$pfv$1...@digitalmars.com...
>> Hi,
>>
>> Can someone give me a clue on why nothing is printed to stdout ?
>>
>> I wish a list of files with their size.
>>
>> code:
>>
On 30.10.2011 14:00, Frédéric Galusik wrote:
Hi,
Can someone give me a clue on why nothing is printed to stdout ?
I wish a list of files with their size.
code:
//
import std.stdio;
import std.file;
void main(string[] args)
{
foreach (DirEntry e; dirEntries(".", SpanMode.shallow))
{
Le Sun, 30 Oct 2011 16:44:20 -0400, Nick Sabalausky a écrit :
> "Frédéric Galusik" wrote in message
> news:j8j77l$pfv$1...@digitalmars.com...
>> Hi,
>>
>> Can someone give me a clue on why nothing is printed to stdout ?
>>
>> I wish a list of files with their size.
>>
>> code:
>> //
>> import std
Le Mon, 31 Oct 2011 00:55:58 +0400, Dmitry Olshansky a écrit :
> On 30.10.2011 14:00, Frédéric Galusik wrote:
>> Hi,
>>
>> Can someone give me a clue on why nothing is printed to stdout ?
>>
>> I wish a list of files with their size.
>>
>> code:
>> //
>> import std.stdio;
>> import std.file;
>>
>>
On Mon, 31 Oct 2011 06:01:05 -0400, Frédéric Galusik
wrote:
Le Mon, 31 Oct 2011 00:55:58 +0400, Dmitry Olshansky a écrit :
On 30.10.2011 14:00, Frédéric Galusik wrote:
Hi,
Can someone give me a clue on why nothing is printed to stdout ?
I wish a list of files with their size.
code:
//
i
Steven Schveighoffer Wrote:
> Oh I remember doing that too :) Don't feel bad, everyone does this at
> least once. I hate that stupid test builtin, nobody ever uses it anymore.
>
> Note, it's not a command line tool, it's a shell builtin, which is why it
> overrides anything in your search p
On Tuesday, November 01, 2011 04:27 Kagamin wrote:
> Steven Schveighoffer Wrote:
> > Oh I remember doing that too :) Don't feel bad, everyone does this at
> > least once. I hate that stupid test builtin, nobody ever uses it
> > anymore.
> >
> > Note, it's not a command line tool, it's a shell buil
Ew. speak no blasphemy...
On Tue, Nov 1, 2011 at 6:27 AM, Kagamin wrote:
> Steven Schveighoffer Wrote:
>
> > Oh I remember doing that too :) Don't feel bad, everyone does this at
> > least once. I hate that stupid test builtin, nobody ever uses it
> anymore.
> >
> > Note, it's not a command l
On Tue, 01 Nov 2011 07:27:44 -0400, Kagamin wrote:
> Steven Schveighoffer Wrote:
>
>> Oh I remember doing that too :) Don't feel bad, everyone does this at
>> least once. I hate that stupid test builtin, nobody ever uses it
>> anymore.
>>
>> Note, it's not a command line tool, it's a shell bui
Le Tue, 01 Nov 2011 18:23:52 +, Graham Fawcett a écrit :
> On Tue, 01 Nov 2011 07:27:44 -0400, Kagamin wrote:
>
>> Steven Schveighoffer Wrote:
>>
>>> Oh I remember doing that too :) Don't feel bad, everyone does this at
>>> least once. I hate that stupid test builtin, nobody ever uses it
>
On Tuesday, November 01, 2011 18:23:52 Graham Fawcett wrote:
> On Tue, 01 Nov 2011 07:27:44 -0400, Kagamin wrote:
> > Steven Schveighoffer Wrote:
> >> Oh I remember doing that too :) Don't feel bad, everyone does this at
> >> least once. I hate that stupid test builtin, nobody ever uses it
> >> a
On Tue, 01 Nov 2011 12:18:02 -0700, Jonathan M Davis wrote:
> On Tuesday, November 01, 2011 18:23:52 Graham Fawcett wrote:
>> On Tue, 01 Nov 2011 07:27:44 -0400, Kagamin wrote:
>> > Steven Schveighoffer Wrote:
>> >> Oh I remember doing that too :) Don't feel bad, everyone does this
>> >> at least
On Tue, 01 Nov 2011 14:23:52 -0400, Graham Fawcett
wrote:
On Tue, 01 Nov 2011 07:27:44 -0400, Kagamin wrote:
Steven Schveighoffer Wrote:
Oh I remember doing that too :) Don't feel bad, everyone does this at
least once. I hate that stupid test builtin, nobody ever uses it
anymore.
Note,
On Wed, 02 Nov 2011 07:56:19 -0400, Steven Schveighoffer wrote:
> On Tue, 01 Nov 2011 14:23:52 -0400, Graham Fawcett
> wrote:
>
>> On Tue, 01 Nov 2011 07:27:44 -0400, Kagamin wrote:
>>
>>> Steven Schveighoffer Wrote:
>>>
Oh I remember doing that too :) Don't feel bad, everyone does this
>>
Jonathan M Davis Wrote:
> Though if you don't get used to putting ./ in front of the names of binaries
> that you're running in the current directory, you're going to have other
> problems. The suggestion does fix the occasional screw-up with that
> particular
> command though.
Seems like ./
"Kagamin" wrote in message
news:j8rlig$145l$1...@digitalmars.com...
> Jonathan M Davis Wrote:
>
>> Though if you don't get used to putting ./ in front of the names of
>> binaries
>> that you're running in the current directory, you're going to have other
>> problems. The suggestion does fix the
"Steven Schveighoffer" wrote in message
news:op.v4bh35eaeav7ka@localhost.localdomain...
> On Tue, 01 Nov 2011 14:23:52 -0400, Graham Fawcett
> wrote:
>>
>> Too much work! Just put
>>
>> alias test='./test'
>>
>> in your .profile, and be happy. :)
>
> That's a cool trick :)
>
> However, one is
Nick Sabalausky Wrote:
> > Seems like ./ tries to fix some sort of Namespace Pollution Hell when
> > virtually every installed program ends up in path.
>
> It's also a safety/security matter. Imagine:
>
> $ cat ./ls
> #!/bin/sh
> rm ~ -rf
>
> Gee, let's see what's inside this directory...WTF?
23 matches
Mail list logo