[rust-dev] executing error

Rick Richardson rick.richardson at gmail.com
Fri Apr 6 08:16:23 PDT 2012


Also, out of curiosity, what is your umask?   and if you  'chmod +x
hello'  does it work then?


On Fri, Apr 6, 2012 at 11:08 AM, Rick Richardson
<rick.richardson at gmail.com> wrote:
> Your code works perfectly for me (except there are two newlines
> between each print (the \n is redundant))
>
> What is your platform and rustc version?
>
> On Fri, Apr 6, 2012 at 9:53 AM, Mic <mictadlo at gmail.com> wrote:
>> Hello,
>> I am getting by executing the bellow code with Permission denied
>>
>> fn main() {
>>         for i in [1, 2, 3] {
>>                 io::println(#fmt("hello %d\n", i));
>>         }
>> }
>>
>> $ rustc hello.rs
>> $ ./hello
>> bash: ./hello: Permission denied
>> $ ls -ahl
>> total 44K
>> drwx------  2 mictadlo mictadlo 4.0K Apr  6 23:49 .
>> drwx------ 27 mictadlo mictadlo 8.0K Apr  6 23:43 ..
>> -rw-r--r--  1 mictadlo mictadlo  14K Apr  6 23:49 hello
>>
>> What did I do wrong?
>>
>> Thank you in advance.
>>
>> Cheers,
>>
>> _______________________________________________
>> Rust-dev mailing list
>> Rust-dev at mozilla.org
>> https://mail.mozilla.org/listinfo/rust-dev
>>


More information about the Rust-dev mailing list