June 2011
2 posts
2 tags
cd -Tmp-
How do I cd to a directory starting with a hypen (-)?
# /var/folders/*whatever*/ has a folder named '-Tmp-'
$ ls
-Caches-/ -Tmp-/
# lets try and CD there
$ cd -Tmp-
-bash: cd: -T: invalid option
cd: usage: cd [-L|-P] [dir]
# or maybe make sure its a directory
$ cd -Tmp-/
-bash: cd: -T: invalid option
cd: usage: cd [-L|-P] [dir]
# try and escape the first -
$ cd \-Tmp-
-bash: cd: -T: invalid...
3 tags
Fed up of `bundle exec rake`? Control your `rage`!
For the past year we’ve all been happy.
rake was stable at 0.8.7
You could run
rake
In any project and it’d just work.
But now, with the release of rake 0.9.0, sometimes we get this
RudiMac:3rdhome matthew$ rake
rake aborted!
You have already activated rake 0.9.0,
but your Gemfile requires rake 0.8.7.
Consider using bundle exec.
(See full trace by running task with --trace)
And...