Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

[BUG] Shell detection on Haiku outputs multiline copyright and breaks the logo

Đang mở
#2,577 8 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
55/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
bash, c
Lĩnh vực
cli, operating-systems

Hướng nghiên cứu

Bắt đầu từ điểm vào của quá trình phát hiện Shell, nơi gọi bash --version, rồi tái hiện đầu ra trên Haiku bằng cấu hình fastfetch được báo cáo. Theo dõi cách phiên bản được gán cho kết quả Shell và xác minh rằng logo vẫn nằm trên một dòng trong khi vẫn giữ lại thông tin phiên bản hữu ích.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

bug can't reproduce
Read the FAQ first
  • I have checked the FAQ but the issue is not covered
Description

On haiku, the Shell line looks like this:

  `*.__,-cMMMMMMMMMMMMMMMMM/`.MMM        Shell: bash GNU bash, version 5.3.15(1)-release (x86_64-unknown-haiku)
Copyright (C) 2025 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

For some reason more than one line is taken out of bash --version and breaks the logo

Version used

fastfetch 2.67.1 (x86_64)

Bug prevalence

Always

Regression

Not sure

Installation

Package manager

Package manager

pkgman

Screenshots

No response

Configuration

System information
[
  {
    "type": "Title",
    "result": {
      "userId": 0,
      "userName": "user",
      "fullUserName": "Yourself",
      "hostName": "[redacted]",
      "homeDir": "/boot/home/",
      "exePath": "/boot/system/bin/fastfetch",
      "userShell": "/bin/bash",
      "pid": 38498,
      "cwd": "/boot/home/"
    },
    "stat": 0.004999995231628418
  },
  {
    "type": "Separator",
    "error": "Unsupported for JSON format",
    "stat": 0.0010000020265579224
  },
  {
    "type": "OS",
    "result": {
      "buildID": "",
      "codename": "",
      "id": "haiku",
      "idLike": "",
      "name": "Haiku",
      "prettyName": "",
      "variant": "",
      "variantID": "",
      "version": "R1B6",
      "versionID": ""
    },
    "stat": 0.06300000101327896
  },
  {
    "type": "Host",
    "error": "Failed to get SMBIOS data",
    "stat": 154.04500000178814
  },
  {
    "type": "BIOS",
    "error": "Failed to get SMBIOS data",
    "stat": 0.00299999862909317
  },
  {
    "type": "Bootmgr",
    "result": {
      "name": "haiku_loader",
      "firmware": "/system/haiku_loader.bios_ia32",
      "order": 0,
      "secureBoot": false
    },
    "stat": 0.010999999940395355
  },
  {
    "type": "Board",
    "error": "Failed to get SMBIOS data",
    "stat": 0.001999996602535248
  },
  {
    "type": "Chassis",
    "error": "Failed to get SMBIOS data",
    "stat": 0.0020000040531158447
  },
  {
    "type": "Kernel",
    "result": {
      "architecture": "x86_64",
      "name": "Haiku",
      "release": "R1~beta6",
      "version": "hrev59866+79 Aug 25 2026 03:02:",
      "pageSize": 4096
    },
    "stat": 0.00299999862909317
  },
  {
    "type": "InitSystem",
    "result": {
      "name": "launch_daemon",
      "exe": "/boot/system/servers/launch_daemon",
      "version": "1.0.0",
      "pid": 46
    },
    "stat": 0.0989999994635582
  },
  {
    "type": "Uptime",
    "result": {
      "uptime": 58112159,
      "bootTime": "2026-09-11T21:18:13.919+0000"
    },
    "stat": 0.4350000023841858
  },
  {
    "type": "Loadavg",
    "result": [
      2.0,
      2.0,
      2.0
    ],
    "stat": 0.0040000006556510925
  },
  {
    "type": "Processes",
    "result": 28,
    "stat": 0.004999995231628418
  },
  {
    "type": "Packages",
    "result": {
      "all": 185,
      "hpkgSystem": 185
    },
    "stat": 0.46300000697374344
  },
  {
    "type": "Shell",
    "result": {
      "exe": "/boot/system/bin/bash",
      "exeName": "bash",
      "exePath": "/boot/system/bin/bash",
      "pid": 38410,
      "ppid": 38409,
      "processName": "bash",
      "prettyName": "bash",
      "version": "GNU bash, version 5.3.15(1)-release (x86_64-unknown-haiku)\nCopyright (C) 2025 Free Software Foundation, Inc.\nLicense GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\n\nThis is free software; you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law.\n",
      "tty": null
    },
    "stat": 25.529999993741512
  },
  {
    "type": "Editor",
    "error": "$VISUAL or $EDITOR not set",
    "stat": 0.012000001966953278
  },
  {
    "type": "Display",
    "result": [
      {
        "id": 0,
        "name": "APP ide Display",
        "primary": true,
        "output": {
          "width": 1024,
          "height": 768,
          "refreshRate": null,
          "drrStatus": null,
          "dpi": 96
        },
        "scaled": {
          "width": 1024,
          "height": 768
        },
        "preferred": {
          "width": 0,
          "height": 0,
          "refreshRate": 0.0
        },
        "physical": {
          "width": 0,
          "height": 0
        },
        "rotation": 0,
        "bitDepth": 0,
        "hdrStatus": null,
        "type": "Unknown",
        "manufactureDate": {
          "year": 2002,
          "week": 7
        },
        "serial": null,
        "platformApi": "BScreen"
      }
    ],
    "stat": 3.3900000005960464
  },
  {
    "type": "Brightness",
    "result": [],
    "stat": 1.8290000036358833
  },
  {
    "type": "Monitor",
    "error": "Monitor module is an alias of Display module",
    "stat": 0.0020000040531158447
  },
  {
    "type": "LM",
    "error": "Not supported on this platform",
    "stat": 0.001999996602535248
  },
  {
    "type": "DE",
    "result": {
      "processName": "",
      "prettyName": "Application Kit",
      "version": ""
    },
    "stat": 0.0020000040531158447
  },
  {
    "type": "WM",
    "result": {
      "processName": "app_server",
      "prettyName": "Application Server",
      "protocolName": "",
      "pluginName": "",
      "version": ""
    },
    "stat": 0.010999999940395355
  },
  {
    "type": "WMTheme",
    "result": "Default",
    "stat": 1.811999998986721
  },
  {
    "type": "Theme",
    "error": "Not supported on this platform",
    "stat": 0.00299999862909317
  },
  {
    "type": "Icons",
    "error": "Not supported on this platform",
    "stat": 0.0010000020265579224
  },
  {
    "type": "Font",
    "result": {
      "display": "Noto Sans Regular (12pt) [Plain / Menu], Noto Sans Bold (12pt) [Bold], Noto Sans Mono Regular (12pt) [Mono]",
      "fonts": [
        "Noto Sans Regular (12pt)",
        "Noto Sans Regular (12pt)",
        "Noto Sans Bold (12pt)",
        "Noto Sans Mono Regular (12pt)"
      ]
    },
    "stat": 1.9849999994039536
  },
  {
    "type": "Cursor",
    "error": "Not supported on this platform",
    "stat": 0.004999995231628418
  },
  {
    "type": "Wallpaper",
    "result": "/boot/system/data/artwork/HAIKU logo - white on blue - big.png",
    "stat": 1.7740000039339066
  },
  {
    "type": "Terminal",
    "result": {
      "processName": "sshd-session",
      "exe": "/boot/system/lib/openssh/sshd-session",
      "exeName": "sshd-session",
      "exePath": "/boot/system/lib/openssh/sshd-session",
      "pid": 38409,
      "ppid": 38407,
      "prettyName": "/dev/tt/p0",
      "version": "",
      "tty": "/dev/tt/p0"
    },
    "stat": 11.09399999678135
  },
  {
    "type": "TerminalFont",
    "error": "Unknown terminal: sshd-session",
    "stat": 0.027000002562999725
  },
  {
    "type": "TerminalSize",
    "result": {
      "columns": 215,
      "rows": 58,
      "width": 1720,
      "height": 1044
    },
    "stat": 8.494999997317791
  },
  {
    "type": "TerminalTheme",
    "result": {
      "fg": {
        "r": 170,
        "g": 170,
        "b": 170,
        "dark": false
      },
      "bg": {
        "r": 0,
        "g": 0,
        "b": 0,
        "dark": true
      }
    },
    "stat": 19.814000003039837
  },
  {
    "type": "CPU",
    "result": {
      "cpu": "Core™ i5-3210M",
      "vendor": "Intel",
      "packages": 1,
      "cores": {
        "physical": 2,
        "logical": 4,
        "online": 4
      },
      "frequency": {
        "base": 2494,
        "max": 0
      },
      "coreTypes": [],
      "temperature": null,
      "march": "x86_64-v2",
      "numaNodes": null,
      "codeName": null,
      "technology": null
    },
    "stat": 0.032999999821186066
  },
  {
    "type": "CPUCache",
    "error": "Failed to get SMBIOS data",
    "stat": 0.016999997198581696
  },
  {
    "type": "CPUUsage",
    "result": [
      85.67712233170887,
      86.61458088200688,
      89.99003067812782,
      29.62557280813976
    ],
    "stat": 0.015000000596046448
  },
  {
    "type": "GPU",
    "result": [
      {
        "index": 1417,
        "coreCount": null,
        "coreUsage": null,
        "memory": {
          "dedicated": {
            "total": null,
            "used": null
          },
          "shared": {
            "total": null,
            "used": null
          },
          "type": null
        },
        "driver": "",
        "name": "3rd Gen Core processor Graphics Controller",
        "temperature": null,
        "type": null,
        "vendor": "Intel",
        "platformApi": "/dev/misc/poke",
        "frequency": null,
        "deviceId": 16,
        "pcieSpeed": null
      }
    ],
    "stat": 2.7060000002384186
  },
  {
    "type": "Codec",
    "error": "Fastfetch was built without VA-API / VDPAU headers",
    "stat": 0.005000002682209015
  },
  {
    "type": "Memory",
    "result": {
      "total": 8491040768,
      "used": 639885312
    },
    "stat": 0.005000002682209015
  },
  {
    "type": "PhysicalMemory",
    "error": "Failed to get SMBIOS data",
    "stat": 0.00299999862909317
  },
  {
    "type": "Swap",
    "result": [
      {
        "name": "System",
        "used": 0,
        "total": 8491040768
      }
    ],
    "stat": 0.03400000184774399
  },
  {
    "type": "Disk",
    "result": [
      {
        "bytes": {
          "available": 0,
          "free": 0,
          "total": 0,
          "used": 0
        },
        "files": {
          "total": null,
          "used": null
        },
        "filesystem": "rootfs",
        "mountpoint": "/",
        "mountFrom": "",
        "name": "0 MiB rootfs volume",
        "volumeType": [
          "Hidden",
          "Unknown"
        ],
        "createTime": "2026-09-11T21:18:16.000+0000"
      },
      {
        "bytes": {
          "available": 0,
          "free": 0,
          "total": 0,
          "used": 0
        },
        "files": {
          "total": null,
          "used": null
        },
        "filesystem": "devfs",
        "mountpoint": "/dev",
        "mountFrom": "",
        "name": "0 MiB devfs volume",
        "volumeType": [
          "Hidden",
          "Unknown"
        ],
        "createTime": "2026-09-11T21:18:16.000+0000"
      }
    ],
    "stat": 0.25699999928474426
  },
  {
    "type": "Btrfs",
    "error": "Not supported on this platform",
    "stat": 0.0020000040531158447
  },
  {
    "type": "Zpool",
    "error": "dlopen(libzfs.so) failed",
    "stat": 0.12299999594688416
  },
  {
    "type": "Battery",
    "error": "opendir(/dev/power/acpi_battery) failed",
    "stat": 0.006000004708766937
  },
  {
    "type": "PowerAdapter",
    "error": "Not supported on this platform",
    "stat": 0.0010000020265579224
  },
  {
    "type": "Player",
    "error": "Player module is an alias of Media module",
    "stat": 0.0010000020265579224
  },
  {
    "type": "Media",
    "error": "Failed to load DBus library",
    "stat": 0.07599999755620956
  },
  {
    "type": "PublicIp",
    "result": {
      "ip": "[redacted]",
      "location": "[redacted]"
    },
    "stat": 0.09200000017881393
  },
  {
    "type": "LocalIp",
    "result": [
      {
        "name": "/dev/net/broadcom570x/0",
        "defaultRoute": {
          "ipv4": true,
          "ipv6": false
        },
        "ipv4": "[redacted]",
        "ipv6": "",
        "mac": "[redacted]",
        "mtu": [redacted],
        "speed": -1,
        "flags": "[redacted]"
      }
    ],
    "stat": 0.08699999749660492
  },
  {
    "type": "DNS",
    "result": [
      "[redacted]"
    ],
    "stat": 0.03500000387430191
  },
  {
    "type": "Wifi",
    "error": "Not support on this platform",
    "stat": 0.0010000020265579224
  },
  {
    "type": "DateTime",
    "result": "2026-09-12T13:26:46.158+0000",
    "stat": 0.0299999937415123
  },
  {
    "type": "Locale",
    "result": "en.UTF-8",
    "stat": 0.0040000006556510925
  },
  {
    "type": "Vulkan",
    "error": "dlopen(libvulkan.so) failed",
    "stat": 0.06599999964237213
  },
  {
    "type": "OpenGL",
    "result": {
      "version": "4.5 (Compatibility Profile) Mesa 22.0.5 (git-530549e85f)",
      "renderer": "llvmpipe (LLVM 12.0.1, 256 bits)",
      "vendor": "Mesa/X.org",
      "slv": "4.50",
      "library": "OpenGLKit"
    },
    "stat": 129.5430000051856
  },
  {
    "type": "OpenCL",
    "error": "dlopen(libOpenCL.so) failed",
    "stat": 0.09999999403953552
  },
  {
    "type": "Users",
    "result": [],
    "stat": 0.003000006079673767
  },
  {
    "type": "Bluetooth",
    "result": [],
    "stat": 0.16999999433755875
  },
  {
    "type": "BluetoothRadio",
    "error": "Not supported on this platform",
    "stat": 0.0020000040531158447
  },
  {
    "type": "Sound",
    "result": [
      {
        "name": "HD Audio",
        "identifier": "HD Audio",
        "platformApi": "MediaKit",
        "type": [
          "main",
          "active"
        ],
        "volume": 76
      }
    ],
    "stat": 0.5230000019073486
  },
  {
    "type": "Camera",
    "error": "Not support on this platform",
    "stat": 0.001999996602535248
  },
  {
    "type": "Gamepad",
    "result": [],
    "stat": 0.016999997198581696
  },
  {
    "type": "Mouse",
    "result": [
      {
        "serial": "",
        "name": "USB Mouse 1",
        "ignored": false
      }
    ],
    "stat": 0.19900000095367432
  },
  {
    "type": "Keyboard",
    "result": [
      {
        "serial": "",
        "name": "USB Keyboard 1",
        "ignored": false
      }
    ],
    "stat": 0.07600000500679016
  },
  {
    "type": "Weather",
    "result": "[redacted]",
    "stat": 0.14099999517202377
  },
  {
    "type": "NetIO",
    "result": [
      {
        "name": "/dev/net/broadcom570x/0",
        "defaultRoute": true,
        "txBytes": 6357,
        "rxBytes": 5890,
        "txPackets": 65,
        "rxPackets": 63,
        "rxErrors": 0,
        "txErrors": 0,
        "rxDrops": 0,
        "txDrops": 0
      }
    ],
    "stat": 634.0989999994636
  },
  {
    "type": "DiskIO",
    "error": "No physical disk found",
    "stat": 0.0040000006556510925
  },
  {
    "type": "PhysicalDisk",
    "result": [
      {
        "name": "APPLE HDD ST500LM012",
        "devPath": "/dev/disk/scsi/0/1/0/raw",
        "interconnect": "scsi",
        "kind": null,
        "size": 500107862016,
        "serial": "",
        "removable": false,
        "readOnly": false,
        "unknown": false,
        "revision": "",
        "temperature": null
      }
    ],
    "stat": 0.12799999862909317
  },
  {
    "type": "TPM",
    "error": "Not supported on this platform",
    "stat": 0.00299999862909317
  },
  {
    "type": "Version",
    "result": {
      "projectName": "fastfetch",
      "sysName": "Haiku",
      "architecture": "x86_64",
      "version": "2.67.1",
      "versionGit": "",
      "cmakeBuiltType": "Release",
      "compileTime": "Aug 29 2026, 14:06:10",
      "compiler": "gcc 13.3.0",
      "debugMode": false,
      "libc": "Unknown"
    },
    "stat": 0.00299999862909317
  },
  {
    "type": "Break",
    "error": "Unsupported for JSON format",
    "stat": 0.0010000020265579224
  },
  {
    "type": "Colors",
    "error": "Unsupported for JSON format",
    "stat": 0.009000003337860107
  }
]
Features built-in
threads
vulkan
dbus
imagemagick7
zlib
egl
opencl
libelf
libzfs
Embedded wcwidth
Ngôn ngữ chính
C
Star
24.7k
Fork
895
Merge trung bình
22 giờ 43 phút
Pull request đã merge (30 ngày)
20

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của fastfetch-cli/fastfetch

Tất cả issue của fastfetch-cli/fastfetch

Issue tương tự

Thêm issue về C

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.