| Ticket UUID: | 462015 | |||
| Title: | find names not prefixed with pwd | |||
| Type: | Bug | Version: | None | |
| Submitter: | davidw | Created on: | 2001-09-16 14:21:27 | |
| Subsystem: | fileutil | Assigned To: | andreas_kupries | |
| Priority: | 8 | Severity: | ||
| Status: | Closed | Last Modified: | 2002-05-16 00:00:35 | |
| Resolution: | Rejected | Closed By: | andreas_kupries | |
| Closed on: | 2002-05-15 17:00:35 | |||
| Description: |
@ashland [~/download/tcl] $ find |less . ./CVS ./CVS/Root ./CVS/Repository ./CVS/Entries ./compat ./compat/CVS ./compat/CVS/Root @ashland [~/download/tcl] $ find `pwd` |less /home/davidw/download/tcl /home/davidw/download/tcl/CVS /home/davidw/download/tcl/CVS/Root /home/davidw/download/tcl/CVS/Repository /home/davidw/download/tcl/CVS/Entries /home/davidw/download/tcl/compat /home/davidw/download/tcl/compat/CVS /home/davidw/download/tcl/compat/CVS/Root tcllib's find does not exhibit this behaviour - it *always* prefixes [pwd] to the results. | |||
| User Comments: |
andreas_kupries added on 2002-05-16 00:00:35:
Logged In: YES user_id=75003 Committed my changes, i.e. the two new strip functions. andreas_kupries added on 2002-05-15 03:09:32: Logged In: YES user_id=75003 I have made up my mind about this and decided to reject the proposed change. I want to keep the interface to the [find] command simple, consistent and without hidden surprises (KIS). Changing the "formatting" of the paths in the result based upon a special value for the "basedir"ectory does not meet my criteria for KIS. I believe that is the responsibility of [find] to return a list of found paths in a uniform format and that of the calling application to decide if a non-standard formatting is required and to apply it. Given that I make the counter proposal to write a command [stripPwd] instead which strips the current working directory from a path, if the path is inside of the CWD. Another command could strip N elements from the beginning of a path, N an argument of the command. Both of these can be used by the application to create the desired effect. andreas_kupries added on 2001-11-01 00:09:35: Logged In: YES user_id=75003 Interface change, this means an update of the major version number for this module and tcllib as a whole. The following is a keyword I will use to mark such items so that I can find them later through a search. MAJOR_VERSION_UPDATE davidw added on 2001-09-18 04:09:39: File Added - 10890: /home/davidw/tmp/find.tcl | |||
Home
Blog
Docs
Downloads
Tickets
Timeline
Branches
Tags
Wiki