public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Remi Collet <remi@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/pie] f43: v1.4.11
Date: Fri, 30 Oct 2026 05:49:04 GMT [thread overview]
Message-ID: <179333934408.1.16016863235246017083.rpms-pie-02fb1fb344a4@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/pie
Branch : f43
Commit : 02fb1fb344a4e5977b9b184ead75ed5687d8f3a0
Author : Remi Collet <remi@fedoraproject.org>
Date : 2026-10-30T06:48:53+01:00
Stats : +44/-12 in 4 file(s)
URL : https://src.fedoraproject.org/rpms/pie/c/02fb1fb344a4e5977b9b184ead75ed5687d8f3a0?branch=f43
Log:
v1.4.11
---
diff --git a/.gitignore b/.gitignore
index cedcb57..78e215b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,3 +7,4 @@ clog
/pie-1.4.8.tgz
/pie-1.4.9.tgz
/pie-1.4.10.tgz
+/pie-1.4.11.tgz
diff --git a/pie-bash-completion b/pie-bash-completion
index 8847c8d..f521379 100644
--- a/pie-bash-completion
+++ b/pie-bash-completion
@@ -16,27 +16,45 @@ _sf_pie() {
fi
done
- # Use newline as only separator to allow space in completion values
- local IFS=$'\n'
local sf_cmd="${COMP_WORDS[0]}"
+ local sf_cmd_parts
- # for an alias, get the real script behind it
+ # for an alias, get the real command behind it, which may carry arguments
sf_cmd_type=$(type -t $sf_cmd)
if [[ $sf_cmd_type == "alias" ]]; then
sf_cmd=$(alias $sf_cmd | sed -E "s/alias $sf_cmd='(.*)'/\1/")
+ read -ra sf_cmd_parts <<< "$sf_cmd"
elif [[ $sf_cmd_type == "file" ]]; then
- sf_cmd=$(type -p $sf_cmd)
+ sf_cmd_parts=("$(type -p $sf_cmd)")
+ else
+ sf_cmd_parts=("$sf_cmd")
+ fi
+
+ # the command must be a function, an executable of the PATH or an executable file
+ if [[ $sf_cmd_type != "function" ]] \
+ && ! type -P "${sf_cmd_parts[0]}" > /dev/null \
+ && [[ ! -x ${sf_cmd_parts[0]} ]] \
+ ; then
+ return 1
fi
- if [[ $sf_cmd_type != "function" && ! -x $sf_cmd ]]; then
+ # The bash-completion package provides the parsing of the current command line
+ if ! declare -F _get_comp_words_by_ref > /dev/null; then
+ >&2 echo "The completion of pie requires the \"bash-completion\" package to be installed and loaded."
+
return 1
fi
+ # this must run with the default IFS: bash-completion 1.x, still shipped on
+ # macOS, joins every word into a single one when IFS is a newline
local cur prev words cword
_get_comp_words_by_ref -n := cur prev words cword
- local completecmd=("$sf_cmd" "_complete" "--no-interaction" "-sbash" "-c$cword" "-a1")
- for w in ${words[@]}; do
+ # Use newline as only separator to allow space in completion values
+ local IFS=$'\n'
+
+ local completecmd=("${sf_cmd_parts[@]}" "_complete" "--no-interaction" "-sbash" "-c$cword" "-a1")
+ for w in "${words[@]}"; do
w="${w//\\\\/\\}"
# remove quotes from typed values
quote="${w:0:1}"
@@ -54,8 +72,15 @@ _sf_pie() {
done
local sfcomplete
- if sfcomplete=$(SHELL_VERBOSITY=0 ${completecmd[@]} 2>&1); then
+ if sfcomplete=$(SHELL_VERBOSITY=0 "${completecmd[@]}" 2>&1); then
local quote suggestions
+
+ # for the "--option=value" form, the suggestions are the values: readline
+ # keeps the "--option=" part, which is a word of its own for it
+ if [[ "$cur" == -*=* ]]; then
+ cur="${cur#*=}"
+ fi
+
quote=${cur:0:1}
# Use single quotes by default if suggestions contains backslash (FQCN)
@@ -64,8 +89,11 @@ _sf_pie() {
fi
if [ "$quote" == \' ]; then
- # single quotes: no additional escaping (does not accept ' in values)
- suggestions=$(for s in $sfcomplete; do printf $'%q%q%q\n' "$quote" "$s" "$quote"; done)
+ # single quotes: escape the single quotes contained in the values
+ suggestions=$(for s in $sfcomplete; do
+ s=${s//\'/\'\\\'\'}
+ printf $'%q%q%q\n' "$quote" "$s" "$quote";
+ done)
elif [ "$quote" == \" ]; then
# double quotes: double escaping for \ $ ` "
suggestions=$(for s in $sfcomplete; do
diff --git a/pie.spec b/pie.spec
index 39434c6..a6c4d8d 100644
--- a/pie.spec
+++ b/pie.spec
@@ -11,7 +11,7 @@
%global gh_owner php
%global gh_project pie
-%global upstream_version 1.4.10
+%global upstream_version 1.4.11
#global upstream_prever rc.1
%global bashcompdir %(pkg-config --variable=completionsdir bash-completion 2>/dev/null)
@@ -134,6 +134,9 @@ done
%changelog
+* Fri Oct 30 2026 Remi Collet <remi@remirepo.net> - 1.4.11-1
+- update to 1.4.11
+
* Thu Aug 20 2026 Remi Collet <remi@remirepo.net> - 1.4.10-1
- update to 1.4.10
diff --git a/sources b/sources
index 50e9718..e0660de 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (pie-1.4.10.tgz) = 7e18dde31661daccab84e3816d5fba6266d6d387f33e093bf057031b6f403325aaadf41df21dde024ce236429197ce86a8afb04cf1800b7d24a2699c546a4e8e
+SHA512 (pie-1.4.11.tgz) = 3e2d0f3888f95715242a9078f06f2d0fafc1c40526f303935931fdd234fb3d26d748d271c0552d7db9292365d1d033f0f82f0389ad1372de9f96f1f670492fd4
reply other threads:[~2026-10-30 5:49 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179333934408.1.16016863235246017083.rpms-pie-02fb1fb344a4@fedoraproject.org \
--to=remi@fedoraproject.org \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox