cp original copy
ln -s original linkI always forget the argument order of the `ln -s` command
11–20 of 127 posts
Re: I always forget the argument order of the `ln -s` command
#12Does anyone know why C calls like 'strcpy' and 'strcat' are the opposite of this? strcat(target, source) strcpy(target, source) But, in SH... cp source target I feel like these things were developed around the same time, by the same community. I've always wondered if there was a reason for the different perspective.
Why memcpy was parameterized in that order, I am not certain.
Re: I always forget the argument order of the `ln -s` command
#13That's funny, I do too. I always thought it was just me...
Re: I always forget the argument order of the `ln -s` command
#14Does anyone know why C calls like 'strcpy' and 'strcat' are the opposite of this? strcat(target, source) strcpy(target, source) But, in SH... cp source target I feel like these things were developed around the same time, by the same community. I've always wondered if there was a reason for the different perspective.
Re: I always forget the argument order of the `ln -s` command
#15My god, this thing always keeps biting me. It seems so obvious now with that cp-mnemonic. But it makes me wonder, why does everyone do it wrong in the first place?
Re: I always forget the argument order of the `ln -s` command
#16Re: I always forget the argument order of the `ln -s` command
#17Re: I always forget the argument order of the `ln -s` command
#18Re: I always forget the argument order of the `ln -s` command
#19Does anyone know why C calls like 'strcpy' and 'strcat' are the opposite of this? strcat(target, source) strcpy(target, source) But, in SH... cp source target I feel like these things were developed around the same time, by the same community. I've always wondered if there was a reason for the different perspective.
Re: I always forget the argument order of the `ln -s` command
#20I've always used complex numbers as a mnemonic: real + imaginary, a + bi (obviously the file is real and the softlink is "imaginary"). http://en.wikipedia.org/wiki/Complex_number