> Description:In a multi-line alias, where entries are separated by semi-colon, > "source" commands are not executed in-step with all the other commands. > After all the non "source" commands are executed, the "source" commands are > executed in reverse order. See below for an example. > Repeat-By: > ubuntu@ubuntu:~$ cat script.sh#!/bin/bash(echo -n "$1 "; date > +%S.%N)ubuntu@ubuntu:~$ alias foo1alias foo1='~/script.sh one; source > ~/script.sh two; source ~/script.sh three; ~/script.sh four'ubuntu@ubuntu:~$ > alias foo2alias foo2='~/script.sh one;source ~/script.sh two;source > ~/script.sh three;~/script.sh four;'ubuntu@ubuntu:~$ foo1one 09.742581873two > 09.745315889three 09.749212492four 09.761410711ubuntu@ubuntu:~$ foo2one > 11.805819275four 11.819741270three 11.828260887two 11.829470548 > Fix: > Use a single-line alias. Or use the "&&" operator to chain commands (which > changes the functionality to be short-circuit evaluations).
I can't reproduce this on Mac OS X or RHEL 5. You might also consider adding a few newlines into your report for readability. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, ITS, CWRU c...@case.edu http://cnswww.cns.cwru.edu/~chet/