Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Robin_Message
on Jan 29, 2014
|
parent
|
context
|
favorite
| on:
Ask HN: What's the worst you've ever screwed up at...
I assume `set HOME = /some/location` is the tcsh syntax to set a variable.
In Bash, it doesn't do anything useful.
kps
on Jan 29, 2014
|
next
[–]
> 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’.
dllthomas
on Jan 29, 2014
|
prev
[–]
Ah, right, duh.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
In Bash, it doesn't do anything useful.