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

output is interleaved with blank lines when passing multiple file arguments (e.g.: *.txt) #233

Closed
1 of 5 tasks
fferri opened this issue Oct 29, 2018 · 1 comment
Closed
1 of 5 tasks

Comments

@fferri
Copy link

fferri commented Oct 29, 2018

Description

When passing multiple file arguments, e.g.:

colorls a.txt b.txt c.txt

or

colorls *.txt

the output is interleaved with blank lines:

$ colorls *.txt
      a.txt

      b.txt

      c.txt

      d.txt

For comparison, this is the normal output:

$ colorls
      a.txt       b.txt       c.txt       d.txt

and this is the long (-l) output:

$ colorls -l
  rw-r--r--  me  staff    0 B    Mon Oct 29 17:52:05 2018    a.txt
  rw-r--r--  me  staff    0 B    Mon Oct 29 17:52:05 2018    b.txt
  rw-r--r--  me  staff    0 B    Mon Oct 29 17:52:05 2018    c.txt
  rw-r--r--  me  staff    0 B    Mon Oct 29 17:52:05 2018    d.txt
  • Relevant Issues : (none)
  • Relevant PRs : (none)
  • Type of issue :
    • Installation
    • Font-related
    • Feature request
    • Bug in existing feature
    • Developer mode : Code quality / Tests / Documentation
@avdv avdv mentioned this issue May 11, 2019
4 tasks
@t-mangoe
Copy link
Contributor

I investigated this blank line.
In lib/colorls/flags.rb, the following output statement seems to make blank lines in process method.
puts '' if i.positive?
(line number is 46)

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

No branches or pull requests

2 participants