On Thu, December 15, 2005 3:32 am, Philip Ganchev wrote: > On 12/14/05, Axel Liljencrantz <[EMAIL PROTECTED]> wrote: >> Take the command 'foo ..' for example. If you are in the ~/data/link >> directory, it might be reasonable to expand '..' to '~/data', to >> maintain the link consistency. But what if '..' is not in fact a >> directory but a regexp? The fish way is the only way to get a >> consistent directory resolution across all commands and situations, >> and that is why I chose it. > > Please excuse my ignorance, how can '..' be a regexp in this context?? >
'.' matches any character, so '..' would match any string that is two characters long. We simply can't know if a particular command argument will be used as a filename or not, and hence we don't know if it should be translated. -- Axel ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ Fish-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fish-users
