From b5811cbfd2eaacb1fb4d96229748b572d05ca154 Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Wed, 31 May 2023 03:04:58 -0700 Subject: [PATCH] Fix details about 2019/duble sockets Of course the globs do not have a = at the end of the line; that's from an aliased ls that shows different characters at EOL depending on the file type. I also explained how to delete these files assuming that glob pattern. In the README.md this was done in the new INABIAF section which is where it belonged in the first place. --- 2019/duble/README.md | 17 +++++++++++++++++ bugs.md | 14 ++++++++++++++ 2 files changed, 31 insertions(+) diff --git a/2019/duble/README.md b/2019/duble/README.md index 9b04f3b9d..a99917ec8 100644 --- a/2019/duble/README.md +++ b/2019/duble/README.md @@ -29,6 +29,9 @@ Open another window / terminal. Open more terminals and repeat... +### INABIAF - it's not a bug it's a feature! :-) + + WARNING: if the file is deleted it might lock any session still in use. These will have to be killed from another shell session or by closing the terminal tab. @@ -44,6 +47,20 @@ srwxr-xr-x 1 ioccc staff 0 6 Apr 08:16 .CMDGAELH ... ``` +To get a list of files with this glob try: + +```sh +ls -al |awk '{print $NF}' | grep -E '^\.[A-Z]+' +``` + +To delete them you can do: + +```sh +find . -name '.[A-Z]*' -delete +``` + +though one might want to check that the program is not currently running. :-) + ### Alternate code: An alternate version of this entry, [prog.alt.c](prog.alt.c), is provided. This alternate diff --git a/bugs.md b/bugs.md index 1deb29dcd..3581bb66e 100644 --- a/bugs.md +++ b/bugs.md @@ -2086,6 +2086,20 @@ This is NOT a bug and you'll have to (at least at this time?) delete the files manually. You shouldn't have to worry about these being added to git: it seems to ignore sockets (it did at least in macOS). +NOTE: To get a list of files with this glob try: + +```sh +ls -al |awk '{print $NF}' | grep -E '^\.[A-Z]+' +``` + +To delete them you can do: + +```sh +find . -name '.[A-Z]*' -delete +``` + +though one might want to check that the program is not currently running. :-) + ## [2019/ciura](2019/ciura/prog.c) ([README.md](2019/ciura/README.md)) ## STATUS: known bug - please help us fix