aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpystardust <notpiestardust@gmail.com>2021-03-03 16:42:50 +0530
committerpystardust <notpiestardust@gmail.com>2021-03-03 16:42:50 +0530
commitd57aeb1f43a6d95fe67550aae297138017554b51 (patch)
treebec48a3b9efef37aebe047d14ba98a569a308854
parent20a798bc4880b969bcdbe9ccc2314e4c79966c31 (diff)
downloadytfzf-d57aeb1f43a6d95fe67550aae297138017554b51.tar.gz
fix: bash users had problems with history file due to echo \n
-rwxr-xr-xytfzf4
1 files changed, 2 insertions, 2 deletions
diff --git a/ytfzf b/ytfzf
index 93ba044..1efc024 100755
--- a/ytfzf
+++ b/ytfzf
@@ -348,8 +348,8 @@ user_selection () {
done<<EOF
$shorturls
EOF
- urls="$(printf "$urls" | sed 1d )"
- selected_data="$(echo "$selected_data" | sed 1d )"
+ urls="$( printf "$urls" | sed 1d )"
+ selected_data="$( printf "$selected_data" | sed 1d )"
if [ $show_link_only -eq 1 ] ; then
echo "$urls"
Un proyecto texto-plano.xyz