[beginner] Why nothing is printed to stdout ?
Steven Schveighoffer
schveiguy at yahoo.com
Wed Nov 2 04:56:19 PDT 2011
On Tue, 01 Nov 2011 14:23:52 -0400, Graham Fawcett <fawcett at uwindsor.ca>
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, it's not a command line tool, it's a shell builtin, which is why
>>> it overrides anything in your search path.
>>>
>>> I've since adopted the habit of calling test programs "testme" instead
>>> of "test" :)
>>
>> Huh, must port windows console to linux ^_^
>
> Too much work! Just put
>
> alias test='./test'
>
> in your .profile, and be happy. :)
That's a cool trick :)
However, one issue, if you do happen to run any shell scripts where some
a**hole insisted on using test instead of the [] form, this will cause
problems. There must be some way to check for an interactive shell...
-Steve
More information about the Digitalmars-d-learn
mailing list