in reply to Re^2: Permission denied writing to Windows 10
in thread Permission denied writing to Windows 10

What happens if you type echo . > hello.txt at that same command line?


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority". I knew I was on the right track :)
In the absence of evidence, opinion is indistinguishable from prejudice.

Replies are listed 'Best First'.
Re^4: Permission denied writing to Windows 10
by Anonymous Monk on Sep 14, 2016 at 18:25 UTC

    It works as expected - I get a hello.txt file created with the . in it.

      Okay. Now try perl -E"say for 1 .. 10" > hello.txt

      And if that works (which it should) then try:

      perl -E"open O, '>', 'hello.txt' or die $^E; say for 1 .. 10; close O"

      With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority". I knew I was on the right track :)
      In the absence of evidence, opinion is indistinguishable from prejudice.

        The first command line worked - I got a file with the integers 1-10.

        However, the second command line failed with the error:

        Access is denied at -e line 1.