Skip to content

Commit

Permalink
Add missing characters to :std/cli/shell/easy-shell-character? (#1081)
Browse files Browse the repository at this point in the history
This PR adds missing characters (y, Y and 9) to
`:std/cli/shell/easy-shell-character?` example and test.
  • Loading branch information
woxtu authored Dec 7, 2023
1 parent 50e8ac5 commit e687155
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/reference/std/cli/shell.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ For good measure we also quote strings containing non-ASCII characters.
::: tip Examples:
```scheme
> (string-for-each (lambda (c) (or (easy-shell-character? c) (error "foo")))
"abcdefghijklmnopqrstuvwxzABCDEFGHIJKLMNOPQRSTUVWXZ012345678@%+,-./:=@_") ;; no error
"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@%+,-./:=@_") ;; no error
> (string-for-each (lambda (c) (or (not (easy-shell-character? c)) (error "foo")))
"!`~#$^&*()[{]}\\|;'\"<>? \r\n\t\v") ;; no error either
```
Expand Down
2 changes: 1 addition & 1 deletion src/std/cli/shell-test.ss
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
(test-suite "test :std/misc/shell"
(test-case "easy-shell-character?"
(string-for-each (lambda (c) (check (easy-shell-character? c) => #t))
"abcdefghijklmnopqrstuvwxzABCDEFGHIJKLMNOPQRSTUVWXZ012345678%+,-./:=@_")
"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789%+,-./:=@_")
(string-for-each (lambda (c) (check (easy-shell-character? c) => #f))
"!`~#$^&*()[{]}\\|;'\"<>? \r\n\t\v"))
(test-case "needs-shell-escape?, escape-shell-token"
Expand Down

0 comments on commit e687155

Please sign in to comment.