summary refs log tree commit diff stats
path: root/.github/workflows/shellcheck.yml
blob: 0d10cf618ba9b816f207c73ea5376d5d50055bb1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
name: Shellcheck scope.sh

on: 
  push:
    paths:
      - '.github/workflows/shellcheck.yml'
      - 'ranger/data/scope.sh'

jobs:
  test_shellcheck:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v1
      with:
        fetch-depth: 1
    - name: Install newer shellcheck (0.7.0 rather than 0.4.6)
      run: |
        curl -LO "https://storage.googleapis.com/shellcheck/shellcheck-stable.linux.x86_64.tar.xz"
        tar xf shellcheck-stable.linux.x86_64.tar.xz
    - name: Shellcheck scope.sh
      run: |
        env PATH=shellcheck-stable:$PATH make test_shellcheck
i β' it returns the address of its ith element. / 2 VECTOR β / Define a length 2 vector β / 6 0 β ! / β ≡ 6 7 / 7 1 β ! 0 β ? CR / Check the elements of β / 1 β ? CR ∇ ARRAY , × CELLS ALLOT @ × CELLS + CELLS + 8+ / When an array is being defined as 'N M ARRAY μ' the value of N is stored in the header and N×M cells are allotted for its elements. When it is used as 'i j μ' it returns the address of its (i,j) element. / 2 2 ARRAY μ / Define a 2×2 array μ / 6 0 0 μ ! / μ ≡ 6 7 / 7 0 1 μ ! / 8 9 / 8 1 0 μ ! 9 1 1 μ ! 0 0 μ ? CR / Check the elements of μ / 0 1 μ ? CR 1 0 μ ? CR 1 1 μ ? CR