bug-gnulib@gnu.org mirror (unofficial)
 help / color / mirror / Atom feed
From: KO Myung-Hun <komh78@gmail.com>
To: bug-gnulib@gnu.org
Subject: [PATCH] init.sh: Consider OS/2-style path
Date: Mon, 15 Jan 2024 15:37:27 +0900	[thread overview]
Message-ID: <20240115063730.147-1-komh@chollian.net> (raw)

tests/init.sh (setup_): Use $PATH_SEPARATOR as a path separator, and
consider an OS/2-style absolute path.
---
 tests/init.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/init.sh b/tests/init.sh
index aef5eea808..8b5dc2b23e 100644
--- a/tests/init.sh
+++ b/tests/init.sh
@@ -435,14 +435,14 @@ setup_ ()
   # Remove relative and non-accessible directories from PATH, including '.'
   # and Zero-length entries.
   saved_IFS="$IFS"
-  IFS=:
+  IFS="$PATH_SEPARATOR"
   new_PATH=
   sep_=
   for dir in $PATH; do
     case "$dir" in
-      /*) test -d "$dir/." || continue
+      /* | ?:*) test -d "$dir/." || continue
           new_PATH="${new_PATH}${sep_}${dir}"
-          sep_=':';;
+          sep_="$PATH_SEPARATOR";;
     esac
   done
   IFS="$saved_IFS"
-- 
2.42.0



             reply	other threads:[~2024-01-15  6:37 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-15  6:37 KO Myung-Hun [this message]
2024-01-15 15:10 ` [PATCH] init.sh: Consider OS/2-style path Bruno Haible
2024-01-16  3:03   ` KO Myung-Hun
  -- strict thread matches above, loose matches on Subject: below --
2023-10-02 15:56 KO Myung-Hun

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

  List information: https://lists.gnu.org/mailman/listinfo/bug-gnulib

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240115063730.147-1-komh@chollian.net \
    --to=komh78@gmail.com \
    --cc=bug-gnulib@gnu.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 read-only IMAP folder(s) and NNTP newsgroup(s).