Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I assume `set HOME = /some/location` is the tcsh syntax to set a variable.

In Bash, it doesn't do anything useful.



  > In Bash, it doesn't do anything useful.
In sh and derived shells, it sets the arguments ($1, $2, and so on). In this case you end up with $1 being ‘HOME’, $2 being ‘=’, and $3 being ‘/some/location’.


Ah, right, duh.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: