The code below is stored in a file named
/home/bash_script
1) When I run the program bash_script, it did not did
list all files and directory in argument two ($2) which is
/usr/suid, but instead it list the files and directory in
/home/
2) On the code abc /usr/suid "$2", I change it to
abc /usr/suid "$1", but it did not changed anything.
3) The code abc /usr/suid "$2" . Does it means to
call the function abc whereas usr/suid is passed as
a second argument ?
========================
Code:
#!/bin/bash
function abc()
{
ls -al $2
}
abc /usr/suid "$2"