Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

icons and symbols not redering on cli as expected to be done by the test-fonts.sh script #1735

Closed
3 tasks done
jagdishadusumalli opened this issue Nov 17, 2024 · 1 comment
Labels

Comments

@jagdishadusumalli
Copy link

jagdishadusumalli commented Nov 17, 2024

Requirements

  • I have searched the issues for my issue and found nothing related or helpful
  • I have searched the FAQ for help
  • I have checked the Wiki for help

Experienced Behavior

i see all unicode characters being printed instead of icons

Expected Behavior

i wanted the script to prints the icons and sysmbols but it does not as shown in screen shot
printf '\uF013 \uF120 \uF121 \uF126' ...Works perfectly..shows symbols
echo "\uF013 \uF120 \uF121 \uF126" ...Works perfectly..shows symbols

Example Symbols or Text

No response

Font Used

Fira-code-nerd-font

Source of Font File

No response

Terminal Emulator (and the title of the terminal window)

iterm

Operating System and Version

macos sequoia 15.1 with bash, zsh and fish (tested on all)

Screenshots

test-fonts
@Finii Finii added the os:osx label Nov 17, 2024
@Finii
Copy link
Collaborator

Finii commented Nov 17, 2024

The problem is MacOS' ancient bash version.

$ bash --version
GNU bash, version 3.2.57(1)-release (arm64-apple-darwin24)
Copyright (C) 2007 Free Software Foundation, Inc.

Almost 18 years old will just not work ;) It's old enough to drive a car and drink alcohol.
If you use Homebrew try pouring a recent version of bash.

See for example [1]. With that it is no problem:

Screenshot 2024-11-17 at 09 08 04

I have no Nerd Font selected in iTerm

$ /opt/homebrew/bin/bash --version
GNU bash, version 5.2.37(1)-release (aarch64-apple-darwin24.0.0)
Copyright (C) 2022 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.

There are several scripts here that require at least bash version 4. Of course we could rewrite the scripts for zsh (which I use, and which is the default on many systems nowadays), but that would take a considerable amount of time, so please understand that users are just required to use something more recent.

[1] https://dev.to/bphogan/use-modern-bash-shell-on-macos-22a6

@Finii Finii closed this as not planned Won't fix, can't repro, duplicate, stale Nov 17, 2024
@Finii Finii mentioned this issue Nov 18, 2024
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants