setting IFS variable
im trying to set my IFS variable so that it interprets / as delimter. but i cannot get it to work. i do export IFS=' /' ; and when i do a declare and look at IFS value it is indeed ' /' . but when the it doesnt interpret commands the way i thought it would. like when i have execute a script like this:
#!/bin/bash
/home/me/hello
- it should remove the / and then try to execute the command home instead of hello, can someone tell me what im doing wrong? i have been googling this for hours unsuccesfully.
|