Thanks for that. One lives and one learns, despite efforts to the contrary...
On Jan 18, 2011, at 05:08 , Jeroen Demeyer wrote: > On 2011-01-17 19:54, Justin C. Walker wrote: >> On Jan 17, 2011, at 08:52 , Jeroen Demeyer wrote: >>> Even if you would have such an alias, shell scripts normally don't use >>> aliases. >> >> Can you clarify this? Normally, in a shell script, using 'ln' will invoke >> whatever version of 'ln' is found first [following the evaluation rules for >> the shell in charge]. An alias will be found before anything on the disk >> (unless the shell is doing something strange). > > From the bash man page: > Aliases are not expanded when the shell is not interactive, unless the > expand_aliases shell option is set using shopt (see the description of > shopt under SHELL BUILTIN COMMANDS below). > > In other words: in shell scripts aliases are completely ignored. Ewwww.... I especially like the bit about 'expand_aliases'. That can make for a lot of fun tracking problems... Justin -- Justin C. Walker Curmudgeon at Large Director Institute for the Enhancement of the Director's Income -- Build a man a fire and he'll be warm for a night. Set a man on fire and he'll be warm for the rest of his life. -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org