Apply LimitFilter after HiddenTagFilter
The LimitFilter should be performed at the very last step. Instead of complicating ExpressionCommand and ListCommand to cough up a well ordered set of filters, order the filters when updating the view. Each filter is assigned an order number, where filters with a higher order are applied later. This fixes the output when using the ls -n flag, where the truncation appears before the hide tag filter. This results in possibly less items to be printed than specified (or worse: nothing is printed).
Showing
Please register or sign in to comment