1) In csh, it does not work if we try to save the tt from current directory into a new directory ~/dire1/dire2/ with a new filename "~/dire1/dire2/aa_temp" as below:
set appendix_name = temp
cat tt > "~/dire1/dire2/aa_"$appendix_name (Not work)
The csh can not find the file ~/dire1/dire2/aa_temp !! (No such file or directory)
The same thing happens if we:
ls "~/dir1/dir2" (Not work)
2) It works if we remove the double quote:
cat tt > ~/dire1/dire2/aa_temp (work !)
ls ~/dir1/dir1
3) it also works if we give the complete path with a double quote:
cat tt > "/home/user/dire1/dire2/aa_temp" (work !)
ls "/home/user/dir1/dir2"
The double quote defines the string. but this string is not recognized by csh as a proper path/file, if it does not has the complete path.
Aucun commentaire:
Enregistrer un commentaire