From: abenson <abenson@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Merged]: common/environment/setup/install.sh: fix v* funcs for paths with spaces
Date: Fri, 14 Jun 2024 05:49:16 +0200 [thread overview]
Message-ID: <20240614034916.E8ACF2B573@inbox.vuxu.org> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-48676@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 1690 bytes --]
There's a merged pull request on the void-packages repository
common/environment/setup/install.sh: fix v* funcs for paths with spaces
https://github.com/void-linux/void-packages/pull/48676
Description:
also quote, fix tabs, and shellcheck the file
revival of #42850
re: @Chocimier's comment:
> How about pushing setting IFS down to cp call? We may need word splitting later on for vsv's LN_OPTS.
this does not work, it still splits the arguments if done at that level. also, `LN_OPTS` is a single word (either `-s` or `-sf`).
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **YES**
can be tested with, e.g.:
```diff
diff --git a/srcpkgs/chezmoi/template b/srcpkgs/chezmoi/template
index 1b5d674c14a..50e5b113e0a 100644
--- a/srcpkgs/chezmoi/template
+++ b/srcpkgs/chezmoi/template
@@ -21,6 +21,9 @@ pre_build() {
_date="$(date --utc --date "@$SOURCE_DATE_EPOCH" "+%Y-%m-%d")"
go_ldflags+=" -X main.date=${_date}"
fi
+ mkdir "foo bar"
+ for i in 1 2 3 4 5; do touch "foo bar/idk$i.bleh"; done
+ for i in 1 2 3 4 5; do touch "foo bar/ok$i.bleh"; done
}
do_check() {
@@ -28,8 +31,16 @@ do_check() {
}
post_install() {
+ vmkdir "foo bar"
+ vcopy "foo bar/*.bleh" "foo bar"
vlicense LICENSE
vcompletion completions/chezmoi-completion.bash bash
vcompletion completions/chezmoi.fish fish
vcompletion completions/chezmoi.zsh zsh
}
+
+chezmoi-stuff_package() {
+ pkg_install() {
+ vmove "foo bar/ok*"
+ }
+}
```
next prev parent reply other threads:[~2024-06-14 3:49 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-12 19:57 [PR PATCH] " classabbyamp
2024-05-13 1:47 ` github-actions
2024-06-14 3:49 ` abenson [this message]
2024-08-06 6:19 ` icp1994
2024-08-06 6:24 ` classabbyamp
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=20240614034916.E8ACF2B573@inbox.vuxu.org \
--to=abenson@users.noreply.github.com \
--cc=ml@inbox.vuxu.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;
as well as URLs for NNTP newsgroup(s).