(sys_subshell): Expand ~ in dir. Do the processing of dir before calling fork. Use vfork.
Attach a file by drag & drop or click to upload