Andreas Vox wrote: > < > Doesn't resolve symlinks on Mac > < > < and I repeat: this script is to be used to move .fig files into the > temp directory only. The worst case is that the directories are flagged > as different and so 'sed' is used rather than 'cp'. Explain to me why > that is a problem in real life rather than in some hypothetical > situation. > > Sorry, I didn't want to upset you.
I wasn't upset. > Also I didn't realize it was about the > choice between sed and cp, I didn't read the patch. I thought it was > about not accidently overwriting some files. Ach! Should I test for that? Hmmm. As it stands the script will overwrite an existing "$2" if 'sed' is used and will not if 'cp' is used. I guess I'll change that to 'cp' -f "$1" "$2" > < Why am I being a PITA? Because 'pwd -[PL]' is a bash shell built-in, > not a < POSIX command that comes with each and every *nix box. Examples > < that don't implement '-L': FreeBSD, Tru64 Unix. > > Nor SunOS, but it ignores these arguments. > > I'm sure you are better informed about POSIX standards than me :-) I'm only as informed as google enables me to be. > All I can do is test some script on MacOSX to see if it works or check a > manpage, for other Unices others have more experience. > > Settled then? Sure. Thanks for all the feedback. -- Angus