Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ jobs:
fail-fast: false
matrix:
cip_tag:
- "5.41"
- "5.45"
- "5.44"
- "5.42"
- "5.40"
- "5.38"
- "5.36"
Expand All @@ -40,7 +42,7 @@ jobs:
CIP_TAG: ${{ matrix.cip_tag }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v7

- name: Bootstrap CIP
run: |
Expand All @@ -53,7 +55,7 @@ jobs:
cip cache-key

- name: Cache CPAN modules
uses: actions/cache@v2
uses: actions/cache@v6
with:
path: ~/.cip
key: ${{ runner.os }}-build-${{ steps.cache-key.outputs.key }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
fail-fast: false

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v7

- name: Set up Perl
run: |
Expand All @@ -40,7 +40,7 @@ jobs:
ls -l perlversion.txt

- name: Cache CPAN modules
uses: actions/cache@v1
uses: actions/cache@v6
with:
path: ~/perl5
key: ${{ runner.os }}-build-${{ hashFiles('perlversion.txt') }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/msys2-mingw.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
git config --global core.eol lf
shell: powershell

- uses: actions/checkout@v2
- uses: actions/checkout@v7

- name: Set up Perl
uses: msys2/setup-msys2@v2
Expand All @@ -57,7 +57,7 @@ jobs:
ls perlversion.txt

- name: Cache CPAN modules
uses: actions/cache@v1
uses: actions/cache@v6
with:
path: c:\cx
key: ${{ runner.os }}-build-msys2-${{ hashFiles('perlversion.txt') }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
CIP_TAG: static

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v7

- name: Bootstrap CIP
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
git config --global core.autocrlf false
git config --global core.eol lf

- uses: actions/checkout@v2
- uses: actions/checkout@v7

- name: Set up Perl
run: |
Expand All @@ -43,7 +43,7 @@ jobs:
perl -V > perlversion.txt

- name: Cache CPAN modules
uses: actions/cache@v1
uses: actions/cache@v6
env:
cache-name: cache-cpan-modules
with:
Expand Down
2 changes: 2 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
Revision history for {{$dist->name}}

{{$NEXT}}
- Clarify that "MacOS" in comments and docs refers to the classic,
pre-OS X environment (now called OS9 for short) (gh#43, gh#47)

1.27 2021-05-07 04:54:31 -0600
- Production release identical to 1.26_01
Expand Down
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,19 @@ certain it has ever been tested on VMS. If this platform is important to you
and you can help me verify and or support it on that platform please contact
me.

### OS9

Prior to Mac OS X, "classic" Mac OS (System 7, 8 and 9) used `$^O` value
`MacOS` and had a very different filesystem and process model than the
Darwin-based macOS of today. Throughout this document and in the source
code, `OS9` is used as a shorthand to refer to this classic, pre-OS X
environment (covering Mac OS 7 and 8 as well as 9). Modern Apple macOS is
Unix-like and is covered by the ["Linux, \*BSD and other UNIXes"](#linux-bsd-and-other-unixes) section
above instead.

As of 2015 the current maintainer does not test on OS9, and this platform
is essentially unmaintained.

# FUNCTIONS

## which
Expand Down
1 change: 1 addition & 0 deletions author.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ pod_spelling_system:
- DocSet
- Einar
- Ellefsen
- macOS
- OS2
- Stas
- Win32
Expand Down
15 changes: 14 additions & 1 deletion lib/File/Which.pm
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,19 @@ certain it has ever been tested on VMS. If this platform is important to you
and you can help me verify and or support it on that platform please contact
me.

=head3 OS9

Prior to Mac OS X, "classic" Mac OS (System 7, 8 and 9) used C<$^O> value
C<MacOS> and had a very different filesystem and process model than the
Darwin-based macOS of today. Throughout this document and in the source
code, C<OS9> is used as a shorthand to refer to this classic, pre-OS X
environment (covering Mac OS 7 and 8 as well as 9). Modern Apple macOS is
Unix-like and is covered by the L</"Linux, *BSD and other UNIXes"> section
above instead.

As of 2015 the current maintainer does not test on OS9, and this platform
is essentially unmaintained.

=cut

our @EXPORT = 'which';
Expand Down Expand Up @@ -217,7 +230,7 @@ sub which {
# Executable, normal case
-x _
or (
# MacOS doesn't mark as executable so we check -e
# OS9 (classic Mac OS) doesn't mark files as executable, so we check -e instead
IS_MAC ## no critic (ValuesAndExpressions::ProhibitMixedBooleanOperators)
||
(
Expand Down
2 changes: 1 addition & 1 deletion t/file_which.t
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ unless (File::Which::IS_VMS or File::Which::IS_MAC or File::Which::IS_WIN ) {
);
}

# Make sure that .\ stuff works on DOSish, VMS, MacOS (. is in PATH implicitly).
# Make sure that .\ stuff works on DOSish, VMS, OS9 (classic Mac OS) (. is in PATH implicitly).
SKIP: {
unless ( File::Which::IS_WIN or File::Which::IS_VMS ) {
skip("Not on a DOS or VMS filesystem", 1);
Expand Down
Loading