source5.tests 183 B

12345678
  1. echo 'echo "0:$0 1:$1 2:$2"' >sourced1
  2. set -- 1 2 3
  3. "$THIS_SH" -c '. ./sourced1' arg0 arg1 arg2
  4. echo Ok1:$?
  5. "$THIS_SH" -c '. ./sourced1 q w e' arg0 arg1 arg2
  6. echo Ok2:$?
  7. rm sourced1