I'm sending commands via stdin, how can I send path arguments in a safe manner?
stat /some strange/p"at\nh'/
fails because of the strange path. Could path be stored in a variable or other means and have it work? Or is there an easy way to escape these strange paths before sending them?
EDIT: to be more clear, the strange path can contain any valid posix filename characters so as an example handling the strange directory created below:
mkdir """ '''\n "