Getting an error when trying to cat from fish or zsh

Hi everyone, hoping someone can help me.

At the moment, I'm unable to use the cat utility from either fish or zsh shells. If I manually enter a bash shell, it works with no problem. As a work-around, I've installed ccat which does work from within zsh/fish.

The error I receive (applies to any files I try to cat):

 ╭─[email protected] in ~ as 🧙 took 2ms
 ╰─λ cat test.txt
error: Invalid value "rules" for '--style <components>': Unknown style, 'rules'

For more information try --help

In bash:

[[email protected] ~]$ cat test.txt
Testing123

ccat:

 ╭─[email protected] in ~ as 🧙 took 2ms
 ╰─λ ccat test.txt
Testing123

The same happens no matter what context I run it in, even if run by itself or with the --help flag:

 ╭─[email protected] in ~ as 🧙 took 2ms
[🔴] × cat
error: Invalid value "rules" for '--style <components>': Unknown style, 'rules'

For more information try --help

 ╭─[email protected] in ~ as 🧙 took 2ms
[🔴] × cat --help
error: Invalid value "rules" for '--style <components>': Unknown style, 'rules'

For more information try --help

This is on a relatively brand new installation of Garuda, all I've installed since initial install and setup wizard (dependencies aside) are ccat, qbittorrent, and jellyfin. Haven't done any sort of customizing either, and downloaded using the latest dragonized gaming edition, with full upgrade performed on first boot.

garuda-inxi output:

System:
  Kernel: 5.19.2-zen1-2-zen arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
    root=UUID=24f4d2e4-59c6-4fa9-8606-0a72d75a5ca0 rw [email protected]
    quiet quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0
    resume=UUID=4182e250-689c-4474-ad5b-390329203412 loglevel=3
  Desktop: KDE Plasma v: 5.25.5 tk: Qt v: 5.15.6 info: latte-dock
    wm: kwin_x11 vt: 1 dm: SDDM Distro: Garuda Linux base: Arch Linux
Machine:
  Type: Desktop System: Micro-Star product: MS-7C88 v: 1.0
    serial: <superuser required>
  Mobo: Micro-Star model: B460M-A PRO (MS-7C88) v: 1.0
    serial: <superuser required> UEFI: American Megatrends v: 1.60
    date: 11/30/2020
Battery:
  Device-1: hidpp_battery_0 model: Logitech Wireless Keyboard
    serial: <filter> charge: 55% (should be ignored) rechargeable: yes
    status: discharging
CPU:
  Info: model: Intel Core i5-10500 bits: 64 type: MT MCP arch: Comet Lake
    gen: core 10 built: 2020 process: Intel 14nm family: 6 model-id: 0xA5 (165)
    stepping: 3 microcode: 0xF0
  Topology: cpus: 1x cores: 6 tpc: 2 threads: 12 smt: enabled cache:
    L1: 384 KiB desc: d-6x32 KiB; i-6x32 KiB L2: 1.5 MiB desc: 6x256 KiB
    L3: 12 MiB desc: 1x12 MiB
  Speed (MHz): avg: 3565 high: 4501 min/max: 800/4500 scaling:
    driver: intel_pstate governor: performance cores: 1: 4497 2: 3100 3: 3100
    4: 3100 5: 3100 6: 3100 7: 4501 8: 3100 9: 4493 10: 4499 11: 3100
    12: 3100 bogomips: 74399
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities:
  Type: itlb_multihit status: KVM: VMX disabled
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data mitigation: Clear CPU buffers; SMT vulnerable
  Type: retbleed mitigation: Enhanced IBRS
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
    prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: Enhanced IBRS, IBPB: conditional, RSB
    filling, PBRSB-eIBRS: SW sequence
  Type: srbds mitigation: Microcode
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel CometLake-S GT2 [UHD Graphics 630] vendor: Micro-Star MSI
    driver: i915 v: kernel arch: Gen-9.5 process: Intel 14nm built: 2016-20
    ports: active: none empty: DP-1, DP-2, HDMI-A-1, HDMI-A-2, HDMI-A-3
    bus-ID: 00:02.0 chip-ID: 8086:9bc8 class-ID: 0300
  Device-2: NVIDIA GP106 [GeForce GTX 1060 6GB] vendor: Micro-Star MSI
    driver: nvidia v: 515.65.01 alternate: nouveau,nvidia_drm non-free: 515.xx+
    status: current (as of 2022-07) arch: Pascal code: GP10x
    process: TSMC 16nm built: 2016-21 pcie: gen: 3 speed: 8 GT/s lanes: 16
    bus-ID: 01:00.0 chip-ID: 10de:1c03 class-ID: 0300
  Display: x11 server: X.Org v: 21.1.4 with: Xwayland v: 22.1.3
    compositor: kwin_x11 driver: X: loaded: modesetting,nvidia
    unloaded: nouveau alternate: fbdev,intel,nv,vesa gpu: i915,nvidia
    display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 81 s-size: 602x343mm (23.70x13.50")
    s-diag: 693mm (27.28")
  Monitor-1: DP-2 res: 1920x1080 hz: 144 dpi: 82
    size: 597x336mm (23.5x13.23") diag: 685mm (26.97") modes: N/A
  OpenGL: renderer: NVIDIA GeForce GTX 1060 6GB/PCIe/SSE2 v: 4.6.0 NVIDIA
    515.65.01 direct render: Yes
Audio:
  Device-1: Intel Comet Lake PCH-V cAVS vendor: Micro-Star MSI
    driver: snd_hda_intel v: kernel alternate: snd_sof_pci_intel_cnl
    bus-ID: 00:1f.3 chip-ID: 8086:a3f0 class-ID: 0403
  Device-2: NVIDIA GP106 High Definition Audio vendor: Micro-Star MSI
    driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16
    bus-ID: 01:00.1 chip-ID: 10de:10f1 class-ID: 0403
  Sound Server-1: ALSA v: k5.19.2-zen1-2-zen running: yes
  Sound Server-2: PulseAudio v: 16.1 running: no
  Sound Server-3: PipeWire v: 0.3.57 running: yes
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: Micro-Star MSI driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s
    lanes: 1 port: 3000 bus-ID: 02:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: enp2s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Bluetooth:
  Device-1: Cambridge Silicon Radio Bluetooth Dongle (HCI mode) type: USB
    driver: btusb v: 0.8 bus-ID: 1-1.4:5 chip-ID: 0a12:0001 class-ID: e001
  Report: bt-adapter ID: hci0 rfk-id: 0 state: up address: <filter>
Drives:
  Local Storage: total: 6.59 TiB used: 24.38 GiB (0.4%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/sda maj-min: 8:0 vendor: Seagate model: ST1000LM035-1RK172
    size: 931.51 GiB block-size: physical: 4096 B logical: 512 B
    speed: 6.0 Gb/s type: HDD rpm: 5400 serial: <filter> rev: LCM2
  ID-2: /dev/sdb maj-min: 8:16 vendor: Western Digital
    model: WD10SPZX-60Z10T0 size: 931.51 GiB block-size: physical: 4096 B
    logical: 512 B speed: 6.0 Gb/s type: HDD rpm: 5400 serial: <filter>
    rev: 1A04
  ID-3: /dev/sdc maj-min: 8:32 vendor: Western Digital
    model: WD10JPVX-60JC3T1 size: 931.51 GiB block-size: physical: 4096 B
    logical: 512 B speed: 6.0 Gb/s type: HDD rpm: 5400 serial: <filter>
    rev: 1A02
  ID-4: /dev/sdd maj-min: 8:48 vendor: Western Digital
    model: WDS240G2G0A-00JH30 size: 223.58 GiB block-size: physical: 512 B
    logical: 512 B speed: 6.0 Gb/s type: SSD serial: <filter> rev: 0000
    scheme: GPT
  ID-5: /dev/sde maj-min: 8:64 vendor: Seagate model: ST3000DM001-1ER166
    size: 2.73 TiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
    type: HDD rpm: 7200 serial: <filter> rev: CC25 scheme: GPT
  ID-6: /dev/sdf maj-min: 8:80 vendor: Seagate model: ST1000LM035-1RK172
    size: 931.51 GiB block-size: physical: 4096 B logical: 512 B
    speed: 6.0 Gb/s type: HDD rpm: 5400 serial: <filter> rev: LCM2
Partition:
  ID-1: / raw-size: 203.56 GiB size: 203.56 GiB (100.00%) used: 23.36 GiB
    (11.5%) fs: btrfs dev: /dev/sdd2 maj-min: 8:50
  ID-2: /boot/efi raw-size: 500 MiB size: 499 MiB (99.80%) used: 608 KiB
    (0.1%) fs: vfat dev: /dev/sdd3 maj-min: 8:51
  ID-3: /home raw-size: 2.73 TiB size: 6.37 TiB (233.33%) used: 1.03 GiB
    (0.0%) fs: btrfs dev: /dev/sde1 maj-min: 8:65
  ID-4: /var/log raw-size: 203.56 GiB size: 203.56 GiB (100.00%) used: 23.36
    GiB (11.5%) fs: btrfs dev: /dev/sdd2 maj-min: 8:50
  ID-5: /var/tmp raw-size: 203.56 GiB size: 203.56 GiB (100.00%) used: 23.36
    GiB (11.5%) fs: btrfs dev: /dev/sdd2 maj-min: 8:50
Swap:
  Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
  ID-1: swap-1 type: zram size: 15.49 GiB used: 2.2 MiB (0.0%)
    priority: 100 dev: /dev/zram0
  ID-2: swap-2 type: partition size: 19.53 GiB used: 0 KiB (0.0%)
    priority: -2 dev: /dev/sdd1 maj-min: 8:49
Sensors:
  System Temperatures: cpu: 50.0 C mobo: N/A gpu: nvidia temp: 53 C
  Fan Speeds (RPM): N/A gpu: nvidia fan: 63%
Info:
  Processes: 365 Uptime: 12h 13m wakeups: 24 Memory: 15.49 GiB used: 6.1 GiB
  (39.3%) Init: systemd v: 251 default: graphical tool: systemctl
  Compilers: gcc: 12.2.0 Packages: pacman: 1927 lib: 527 Shell: fish v: 3.5.1
  default: Bash v: 5.1.16 running-in: alacritty inxi: 3.3.20
Garuda (2.6.7-1):
  System install date:     2022-09-08
  Last full system update: 2022-09-09 ↻
  Is partially upgraded:   No
  Relevant software:       NetworkManager
  Windows dual boot:       No/Undetected
  Snapshots:               Snapper
  Failed units:            systemd-vconsole-setup.service
2 Likes

Welcome :slight_smile:

Did you check

For more information try --help

or
the issue list on

?

3 Likes

Also, a reboot is due (just in case...)

3 Likes

As a note: we alias cat to bat which provides syntax highlighting and other features.

3 Likes

I did, get the same error with --help as with any other variant of cat.

As for ccat, ccat works fine. cat is the issue.

bat works, good enough for me, thank you!

I'm getting the same error when try to auto-complete the pacman -S.

Any tip?

Please.
New topic, this one is solved.

3 Likes