Am Freitag, 22. Juni 2007 schrieb Thomas Harold: > Why would an ignore pattern of "./proc/*" work where "./proc" didn't?
Both do work, but fsvs' behaviour seems to be a bit unexpected if a part of a full filename is specified at the command line. "./proc" tells fsvs to ignore entries called "./proc", which is does - a simple "fsvs st" or "fsvs st ." in the top level dir should not show anything. Now, if you're specifying "fsvs st ./proc", fsvs does not even check whether ./proc is ignored but it looks at its contents. The contents however are NOT ignored and thus are displayed as being "new". "./proc/*" also only SEEMS to work, in fact it does just the same. If you eg. try "fsvs st ./proc/sys", it will still show the files and directories below /proc/sys as "new". The patterns "./proc/" (note the trailing slash) and "./proc/**" are equivalent in that both ignore all content below the given directory prefix. You can verify and experiment with this using the attached script. Greetings, Gunter -- *** Powered by AudioScrobbler --> http://www.last.fm/user/Interneci/ *** 15:45 | Xandria - On My Way 15:41 | Xandria - Sleeping Dogs Lie 15:37 | Xandria - Sisters of the Light 15:35 | Xandria - The Wind and the Ocean *** PGP-Verschlüsselung bei eMails erwünscht :-) *** PGP: 0x1128F25F ***
example_ignoring_dirs_and_asking_for_status.sh
Description: application/shellscript
signature.asc
Description: This is a digitally signed message part.
