Skip to content

The result of rtk ls -la is equivalent to rtk ls, which leads to the loss of some info. #1672

Closed

Description

@Chriser001

Problem

When running rtk ls -la, the permissions column (-rw-r--r--) and ownership columns (user group) are entirely stripped from output. The result:

# Native ls -la
-rw-r--r--@  1 user  staff  6144  May  1 23:00 .DS_Store
-rw-r--r--   1 user  staff   984  May  1 22:00 __init__.py

# rtk ls -la
.DS_Store  6.0K
__init__.py  984B

Users pass -la specifically to check permissions and ownership. Removing these columns makes -la equivalent to plain ls and forces a re-run without rtk when permissions actually matter.

Proposed Solution

Convert the permissions column to octal notation instead of deleting it:

# Expected
644  .DS_Store  6.0K
644  __init__.py  984B

Octal (644, 755, 600) is:

  • More compact than -rw-r--r-- (still saves tokens)
  • More precise — no ambiguity about setuid/setgid/sticky bits
  • Machine-parseable — consistent 3-4 digit format
  • What programmers already think in — nobody mentally translates rwx to bits

Comparison

Approach Token count Info preserved
Raw -rw-r--r--@ ~13 chars Full
Strip entirely (current) 0 None
Octal 644 3-4 chars Permission bits
Octal + owner 3-4 + N chars Permission + ownership

The octal approach is the sweet spot — compact yet informative.

Activity

  1. added
    bugSomething isn't working
    effort-smallQuelques heures, 1 fichier
    filter-qualityFilter produces incorrect/truncated signal
    on May 2, 2026
  2. pszymkowiak commented on May 2, 2026

    @pszymkowiak
    Collaborator

    [w] wshm · Automated triage by AI

    🔍 Automated Triage

    🐛 Category bug
    🟡 Priority medium
    🎯 Confidence 88%

    Summary

    rtk ls filter strips permissions and ownership columns when -la is passed, losing the primary information users request with those flags; proposed fix: convert permissions to compact octal notation.

    This looks like a simple fix. Only repo maintainers can trigger auto-fix.


    Triaged automatically by wshm · This is an automated analysis, not a human review.

  3. added 2 commits that reference this issue on May 2, 2026
    54cfdcc
    39dee40
  4. ryana-0154 commented on May 2, 2026

    @ryana-0154
    Contributor

    Will be fixed with #1675

  5. added 2 commits that reference this issue on May 23, 2026
    fced741
    6c4dfc7
  6. added a commit that references this issue on Jul 25, 2026
    d94c333
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingeffort-smallQuelques heures, 1 fichierfilter-qualityFilter produces incorrect/truncated signalgood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions