From 19a2d7bdd919d255abe29009d66963b8c70c5b92 Mon Sep 17 00:00:00 2001 From: m455 Date: Mon, 11 Mar 2019 21:49:15 -0400 Subject: [PATCH] weird bug --- README.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index a67f8c8..9b78131 100644 --- a/README.md +++ b/README.md @@ -16,18 +16,19 @@ Now the default directory and todo list file have better default permissions: # Todos - **Really weird bug to solve**: `~/.rodo/todo.txt`'s file permissions change from `rw-------` to `rw-rw-r--` or `rw-rw-rw` after being modified - - For example, while in your home directory, run `touch test.txt` to create a test file in your home directory - - While in your home directory, run `racket` to open a Racket REPL - - Run the following to set `600` file permissions on the file: + - For example: + 1. Create a `test.txt` file somewhere + 2. Open a Racket REPL + 3. Run the following to set `600` file permissions on the file: ```racket (file-or-directory-permissions "test.txt" #o600) ``` - - Run `ls -l` to check the file permissions - - Run the following to modify the file: + 4. Run `ls -l` to check the file permissions + 5. Run the following to modify the file: ```racket (display-to-file "this is a test" "test.txt" #:mode 'text #:exists 'replace) ``` - - Run `ls -l` to check the file permissions to see that they have changed to either `rw-rw-r--` or `rw-rw-rw` + 6. Run `ls -l` to check the file permissions to see that they have changed to either `rw-rw-r--` or `rw-rw-rw` - So far, the only solution I know of would be to do: ```racket (begin