Advertisement
zamotivator

Untitled

Jun 5th, 2013
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.22 KB | None | 0 0
  1. oleg@t510 0 ~/dev/amtt % cat test.sh
  2. #!/bin/bash
  3.  
  4. set -eu
  5.  
  6. function test2 ()
  7. {
  8.     echo "$1 $2"
  9. }
  10.  
  11. test2 0 "$@"
  12. test2 0 "$(echo $@)"
  13. oleg@t510 0 ~/dev/amtt % ./test.sh 1 2 3
  14. 0 1
  15. 0 1 2 3
  16. oleg@t510 0 ~/dev/amtt %
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement