I have a couple commands that insert a comment in my code for fixes made in our software... They useually look like:
// [eric] date - comment text
Since the last 2 updates, it seems to have stopped working. The error I get is below:
shell-init: could not get current directory: getcwd: cannot access parent directories: No such file or directory
The command is simply:
// [eric] `date +%m/%d/%Y` - $1
Any reason that would occur?
Regards, Eric
On 20/7/2006, at 21:31, Eric Coleman wrote:
[...] shell-init: could not get current directory: getcwd: cannot access parent directories: No such file or directory
[...] Any reason that would occur?
The current working directory must be non-existing when executing the shell command.
Try a regular command in a new document using ⌃R.
If it fails, it might be something in your shell startup [1] which changes to the non-existing directory.
[1] http://macromates.com/textmate/manual/shell_commands#search_path
Allan,
I tried the following in a new document:
date +%m/%d/%Y ⌃R 07/20/2006
It worked... however, I restarted and all of a sudden it's working now. I apologize for wasting your time.
Regards, Eric
On Jul 20, 2006, at 3:20 PM, Allan Odgaard wrote:
On 20/7/2006, at 21:31, Eric Coleman wrote:
[...] shell-init: could not get current directory: getcwd: cannot access parent directories: No such file or directory
[...] Any reason that would occur?
The current working directory must be non-existing when executing the shell command.
Try a regular command in a new document using ⌃R.
If it fails, it might be something in your shell startup [1] which changes to the non-existing directory.
[1] http://macromates.com/textmate/manual/shell_commands#search_path ______________________________________________________________________ For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate