Skip to content

rtk ls -1 returns empty output #803

@NickSdot

Description

@NickSdot

I let Claude explain itself what went wrong...

Bug

rtk ls -1 <directory> returns empty output even when the directory contains files.

Reproduction

# Standard ls works
ls -1 .concept/plan/
# Shows 11 files                                                                                                                                                          
                
# RTK ls without flags works                                                                                                                                              
rtk ls .concept/plan/                                                                                                                                                   
# Shows 11 files with sizes                                                                                                                                               
                                                                                                                                                                        
# RTK ls -1 fails                                                                                                                                                       
rtk ls -1 .concept/plan/                                                                                                                                                  
# Returns empty         

Expected

rtk ls -1 should return one filename per line, same as ls -1.

Impact

When Claude Code hooks rewrite ls -1rtk ls -1, the command silently returns no output, causing Claude to incorrectly report directories as empty.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions