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.


Jeroen.

-- 
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

Reply via email to