Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

BASH scripting

Name: Anonymous 2009-09-08 13:25

sup
i'm using "read" to get a directory path into an env variable.
shit works well when the path doesn't contain an escape command for whitespaces like here:
/home/durp/pics/test_folder/
this here makes problems:
/home/durp/pics/test\ folder/
"read" simply ignores the escape command, but i need it. how do i circumvent that?

Name: Anonymous 2009-09-08 17:08

shit works now, but now i have another problem:
the path with the escaped whitespaces is in my $var
if i do ls $var it fails
if i do ls /home/durp/pics/test folder/ it works, but there's actually no difference between the $var and /home/durp/pics/test folder/
so what the fuck is wrong now?

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List