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

Stylistic and more idiomatic code #45

Merged
merged 1 commit into from
Oct 5, 2020
Merged

Stylistic and more idiomatic code #45

merged 1 commit into from
Oct 5, 2020

Conversation

IlanCosman
Copy link
Collaborator

@IlanCosman IlanCosman commented Oct 5, 2020

A few incredibly minor edits:

  1. Use test instead of [ ... ], in accordance with documentation and the rest of the code. Bracket test builtin (e.g. "if [ $string ]") should be documented fish-shell/fish-shell#1850 says that use of the square brackets for test is highly discouraged.
  2. Use 2>/dev/null instead of 2> /dev/null. This is preferred by fish_indent. I can demonstrate this if you wish.
  3. Use string escape "$blah" instead of echo $blah | string escape

@PatrickF1 PatrickF1 changed the title Minor edits Stylistic and more idiomatic code Oct 5, 2020
@PatrickF1
Copy link
Owner

Hi again, boy how many times have you read through my code? Really appreciate my thoroughness.

@PatrickF1 PatrickF1 merged commit feb5fcd into PatrickF1:main Oct 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants