wslu icon indicating copy to clipboard operation
wslu copied to clipboard

Syntax error in wslfetch and wslsys

Open gordonwatts opened this issue 7 months ago • 3 comments

Windows Version

Windows 11

Windows Build Number

22631

WSL Version

WSL 2

Distro Version

CENTOS7

WSL Utilities Version

v4.1.1-1

Describe the bug

Most of the utilities I've tried give the following syntax error on this distro:

[gwatts@SurfacePhoto ~]$ wslfetch
/usr/bin/wslfetch: line 245: "15" / 8 : syntax error: operand expected (error token is ""15" / 8 ")
/usr/bin/wslsys: line 245: "15" / 8 : syntax error: operand expected (error token is ""15" / 8 ")
/usr/bin/wslsys: line 245: "15" / 8 : syntax error: operand expected (error token is ""15" / 8 ")
 /$$      /$$  /$$$$$$  /$$       Windows Subsystem for Linux (WSL)
| $$  /$ | $$ /$$__  $$| $$       gwatts@SurfacePhoto
| $$ /$$$| $$| $$  \__/| $$       Build: 22631
| $$/$$ $$ $$|  $$$$$$ | $$       Branch: ni_release
| $$$$_  $$$$ \____  $$| $$       Release: CentOS Linux 7 (Core)
| $$$/ \  $$$ /$$  \ $$| $$       Kernel: Linux 5.15.90.1-microsoft-standard-WSL2
| $$/   \  $$|  $$$$$$/| $$$$$$$$ Uptime (Windows): 0d 1h 3m
|__/     \__/ \______/ |________/

It seems like it is still doing what it is supposed to be doing, however (opening a url, etc.).

Steps to Reproduce

sudo yum-config-manager --add-repo https://download.opensuse.org/repositories/home:/wslutilities/RHEL_7/home:wslutilities.repo
sudo yum install -y wslu
wslfetch

Expected behavior

THe output of wslfetch as shown above, but without the syntax errors.

Additional context

Many thanks for the utilities!!

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

gordonwatts avatar Nov 08 '23 06:11 gordonwatts