It appears that you're running an Ad-Blocker. This site is monetized by Advertising and by ">User Donations; we ask that if you find this site helpful that you whitelist us in your Ad-Blocker, or make a ">Donation to help aid in operating costs.
i've ben trying to make something work but still havent figured something out. I do the following: [user@host ~]$ IFS=/ [user@host ~]$ export IFS [user@host ~]$ PATH=.:$PATH [user@host ~]$ echo "/bin/sh" > bin [user@host ~]$ chmod 755 bin
Now the problem is: if I execute 'sh -c "/bin/ls"' it just does a simple ls But if i do 'sh -c "sh -c \"/bin/ls\""' it does what i expected (it executes the file 'bin')
Why doesn't it does the same in the first example??