aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/common/.zsh/modules/Test/B04read.ztst
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-06-02 12:16:38 -0500
committerCraig Jennings <c@cjennings.net>2026-06-02 12:16:38 -0500
commitb10cba594db836c0747066addad48bda4d30cd02 (patch)
tree063119a623fa3f7139feda4ef302896d8f5f934c /dotfiles/common/.zsh/modules/Test/B04read.ztst
parent49c2ba9c4510bf6e1acd306687473bc8ba9ad8dd (diff)
downloadarchsetup-b10cba594db836c0747066addad48bda4d30cd02.tar.gz
archsetup-b10cba594db836c0747066addad48bda4d30cd02.zip
refactor: drop in-repo dotfiles/, move stow tooling to the dotfiles repo
Since the installer clones DOTFILES_REPO into ~/.dotfiles and stows from there, the in-repo dotfiles/ tree was dead weight. Nothing reads it at install time. I removed it (831 files) now that both machines are migrated. The Makefile's stow / restow / reset / unstow / import targets and the dotfile-script unit suites moved to the dotfiles repo. They sit alongside the scripts they manage and run standalone (cd ~/.dotfiles && make ...). This Makefile keeps the VM-integration targets and the installer-helper suite (safe-rm-rf). I updated CLAUDE.md and README.md so stow operations run from ~/.dotfiles, and the dotfile-management, theme, and unit-test sections point at the standalone repo. The README was already describing the old in-repo model from before the installer switched to cloning. This brings it in line.
Diffstat (limited to 'dotfiles/common/.zsh/modules/Test/B04read.ztst')
-rw-r--r--dotfiles/common/.zsh/modules/Test/B04read.ztst112
1 files changed, 0 insertions, 112 deletions
diff --git a/dotfiles/common/.zsh/modules/Test/B04read.ztst b/dotfiles/common/.zsh/modules/Test/B04read.ztst
deleted file mode 100644
index 25c3d41..0000000
--- a/dotfiles/common/.zsh/modules/Test/B04read.ztst
+++ /dev/null
@@ -1,112 +0,0 @@
-# Tests for the read builtin
-
-# Tested elsewhere:
-# reading from a coprocess A01grammar, A04redirect
-
-# Not tested:
-# -c/-l/-n (options for compctl functions)
-# -q/-s (needs a tty)
-
-%test
-
- read <<<'hello world'
- print $REPLY
-0:basic read command
->hello world
-
- read -A <<<'hello world'
- print $reply[2]
-0:array read
->world
-
- read -k3 -u0 <<<foo:bar
- print $REPLY
-0:read specified number of chars
->foo
-
- for char in y Y n N X $'\n'; do
- read -q -u0 <<<$char
- print $?
- done
-0:read yes or no, default no
->0
->0
->1
->1
->1
->1
-
- read -d: <<<foo:bar
- print $REPLY
-0:read up to delimiter
->foo
-
- print foo:bar|IFS=: read -A
- print $reply
-0:use different, IFS separator to array
->foo bar
-
- print -z hello world; read -z
- print $REPLY
-0:read from editor buffer stack
->hello world
-
- unset REPLY
- read -E <<<hello
- print $REPLY
-0:read with echoing and assigning
->hello
->hello
-
- unset REPLY
- read -e <<<hello
- print $REPLY
-0:read with echoing but assigning disabled
->hello
->
-
- read -e -t <<<hello
-0:read with test first
->hello
-
- SECONDS=0
- read -e -t 5 <<<hello
- print $SECONDS
-0:read with timeout (no waiting should occur)
->hello
->0
-
- print -n 'Testing the\0null hypothesis\0' |
- while read -d $'\0' line; do print $line; done
-0:read with null delimiter
->Testing the
->null hypothesis
-
-# Note that trailing NULLs are not stripped even if they are in
-# $IFS; only whitespace characters contained in $IFS are stripped.
- print -n $'Aaargh, I hate nulls.\0\0\0' | read line
- print ${#line}
-0:read with trailing metafied characters
->24
-
- (typeset -r foo
- read foo) <<<bar
-1:return status on failing to set parameter
-?(eval):2: read-only variable: foo
-
- read -AE array <<<'one two three'
- print ${(j.:.)array}
-0:Behaviour of -A and -E combination
->one
->two
->three
->one:two:three
-
- array=()
- read -Ae array <<<'four five six'
- print ${(j.:.)array}
-0:Behaviour of -A and -e combination
->four
->five
->six
->