Weird / FS behavior

Johny Mattsson lonewolf-freebsd at earthmagic.org
Fri May 5 02:35:18 UTC 2006


On 05/05/06 12:30, Christian Lopez de Castilla Wagner wrote:
> I'm posting this to -questions and -stable, since I'm not sure if it is
> a problem or if I'm simply overlooking something.

You're overlooking something :)


> root at hellion# cat S56/vcs/20060504/*.vcs >> S56/vcs/20060504/cal.vcs

The shell creates the "cal.vcs" file before it expands the glob (the 
*.vcs), and therefore the cat command ends up using cal.vcs as input as 
well, causing a nasty feedback loop.

Cheers,
/Johny
-- 
Johny Mattsson - Making IT work  ,-.   ,-.   ,-.  When all else fails,
http://www.earthmagic.org     _.'  `-'   `-'   Murphy's Law still works!


More information about the freebsd-questions mailing list