New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #21873 (closed enhancement: fixed)

Opened 4 years ago

Last modified 3 years ago

fs-traverse: Add -tails option to remove path prefix

Reported by: raimue@… Owned by: raimue@…
Priority: Normal Milestone: MacPorts 1.9.0
Component: base Version:
Keywords: Cc:
Port:

Description

fs-traverse currently returns the full path name combined from the path argument and the "local" file name. It would be helpful to have an option to get the "local" part only.

Example:

fs-traverse f /path/to/foo {
    puts $f
}

=>

/path/to/foo/file1
/path/to/foo/file2
...
fs-traverse -strip f /path/to/foo {
    puts $f
}

=>

file1
file2
...

Change History

comment:1 Changed 4 years ago by blb@…

If we want to be consistent with Tcl, perhaps we should call it -tails like the option for glob?

comment:2 Changed 3 years ago by raimue@…

  • Summary changed from fs-traverse: Add -strip option to remove path prefix to fs-traverse: Add -tails option to remove path prefix

comment:3 Changed 3 years ago by raimue@…

  • Owner changed from macports-tickets@… to raimue@…
  • Status changed from new to assigned

comment:4 Changed 3 years ago by raimue@…

  • Status changed from assigned to closed
  • Resolution set to fixed
  • Milestone changed from MacPorts Future to MacPorts 1.9.0

Added in r65785.

Note: See TracTickets for help on using tickets.