Bash Scripts - DOS Style Line Endings

Open
#1,691 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
bash
Domain
build-system

Research direction

Check the scripts/ directory, starting with scripts/transpile.sh, after cloning the repository and running make local-install. Verify that the scripts use Unix line endings and that make local-install executes successfully in Linux shells.

Written by the indexing model from the issue text.

Description

(1) Issue/Bug Description:
Bash scripts in repository have DOS style line endings which causes bash interpreters to fail to run scripts.

(2) Steps to reproduce (if you know):

  1. Clone repository
  2. run make local-install
  3. : /bin/sh: 1: ./scripts/transpile.sh: not found indicating that sh couldn't be found, but really it's attempting to run /bin/sh^M (where ^M indicates the ASCII carriage return character)

(3) Expected behavior:
Scripts located in the ./scripts/ directory should execute in all linux shells (including bash)

(4) Distribution (run cat /etc/os-release):

cat /etc/os-release
show_command_in_title_bar
PRETTY_NAME="Ubuntu 22.04.3 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.3 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy
echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"
show_command_in_title_bar

(5) Gnome Shell version:
GNU bash, version 5.1.16(1)-release (x86_64-pc-linux-gnu)

(6) Pop Shell version (run apt policy pop-shell or provide the latest commit if building locally):

commit 8e176f14029a2c3bb54c52e1e7a5c697b9eb2171

(7) Where was Pop Shell installed from:
github

(8) Monitor Setup (2 x 1080p, 4K, Primary(Horizontal), Secondary(Vertical), etc):
2x 4k, horizontal 60 fps

(9) Other Installed/Enabled Extensions:
None

(10) Other Notes:
Love the project <3

Dominant language
TypeScript
Stars
5.3k
Forks
318
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from pop-os/shell

All issues in pop-os/shell

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.