Skip to content

Commit 9948418

Browse files
Fix ask
1 parent 9319394 commit 9948418

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ To use the kit in your own script in the same directory, you source the kit like
3333
## Tracking
3434

3535
* Package: unix-shell-script-kit
36-
* Version: 12.3.0
36+
* Version: 12.3.1
3737
* Created: 2017-08-22T00:00:00Z
38-
* Updated: 2024-12-10T23:09:11Z
38+
* Updated: 2025-02-19T02:02:39Z
3939
* Website: https://github.com/sixarm/unix-shell-script-kit
4040
* License: GPL-2.0 or GPL-3.0 or contact us for more
4141
* Contact: Joel Parker Henderson ([email protected])

unix-shell-script-kit

+3-3
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@
3434
# ## Tracking
3535
#
3636
# * Package: unix-shell-script-kit
37-
# * Version: 12.3.0
37+
# * Version: 12.3.1
3838
# * Created: 2017-08-22T00:00:00Z
39-
# * Updated: 2024-12-10T23:09:11Z
39+
# * Updated: 2025-02-19T02:02:39Z
4040
# * License: GPL-2.0 or GPL-3.0 or contact us for more
4141
# * Website: https://github.com/sixarm/unix-shell-script-kit
4242
# * Contact: Joel Parker Henderson ([email protected])
@@ -630,7 +630,7 @@ zid() {
630630
# => prompt
631631
# ```
632632
ask() {
633-
read -r x ; echo "$x" | sed 's/^[[:space:]]*//; s/[[:space:]]*$//'
633+
read -r x ; printf %s "$x" | sed 's/^[[:space:]]*//; s/[[:space:]]*$//'
634634
}
635635

636636
# utf8: should the program print UTF-8 characters such as accents and emoji?

0 commit comments

Comments
 (0)