When trying to use the "Level 1 [setext]" or "Level 2 [setext]" bundle commands I get the following output
Unknown option: n Unknown option: 1 Usage: head [-options] <url>... -m <method> use method for the request (default is 'HEAD') -f make request even if head believes method is illegal -b <base> Use the specified URL as base -t <timeout> Set timeout value -i <time> Set the If-Modified-Since header on the request -c <conttype> use this content-type for POST, PUT, CHECKIN -a Use text mode for content I/O -p <proxyurl> use this as a proxy -P don't load proxy settings from environment -H <header> send this HTTP header (you can specify several)
-u Display method and URL before any response -U Display request headers (implies -u) -s Display response status code -S Display response status chain -e Display response headers -d Do not display content -o <format> Process HTML content in various ways
-v Show program version -h Print this message
-x Extra debugging output
Here's the actual command for Level 1:
#!/bin/sh
if [[ $TM_LINE_INDEX == 0 && $TM_LINE_NUMBER != 1 ]] then head -n$((TM_LINE_NUMBER-1))|tail -n1|sed 's/./=/g' else echo -ne '=\t' fi
I'm running TextMate Version 1.5.4 (1324) and have checked out the latest bundles and support.
Any idea why this is happening?
Thanks Mike Gregoire
On 8. Nov 2006, at 17:04, Michael Gregoire wrote:
When trying to use the "Level 1 [setext]" or "Level 2 [setext]" bundle commands I get the following output [...]
You have a shell command installed which is named ‘head’ but which is not the traditional head command.
Try ‘which head’ to figure out where it is from.
When you install the Perl LWP module, it adds a HEAD, GET, POST, etc. set of commands to /usr/bin.
Unfortunate, since HFS+ on Mac OS doesn't differentiate between head and HEAD. In fact, the LWP install of HEAD removes the head utility. I'm amazed that the module hasn't been corrected yet to fix this problem. It's been that way for some time.
So you'll need to find another copy of the head utility and restore it to /usr/bin.
-Brad
On Nov 8, 2006, at 8:18 AM, Allan Odgaard wrote:
On 8. Nov 2006, at 17:04, Michael Gregoire wrote:
When trying to use the "Level 1 [setext]" or "Level 2 [setext]" bundle commands I get the following output [...]
You have a shell command installed which is named ‘head’ but which is not the traditional head command.
Try ‘which head’ to figure out where it is from.
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
ok, thanks Brad. I'll do so.
On Nov 8, 2006, at 11:32 AM, Brad Choate wrote:
When you install the Perl LWP module, it adds a HEAD, GET, POST, etc. set of commands to /usr/bin.
Unfortunate, since HFS+ on Mac OS doesn't differentiate between head and HEAD. In fact, the LWP install of HEAD removes the head utility. I'm amazed that the module hasn't been corrected yet to fix this problem. It's been that way for some time.
So you'll need to find another copy of the head utility and restore it to /usr/bin.
-Brad
On Nov 8, 2006, at 8:18 AM, Allan Odgaard wrote:
On 8. Nov 2006, at 17:04, Michael Gregoire wrote:
When trying to use the "Level 1 [setext]" or "Level 2 [setext]" bundle commands I get the following output [...]
You have a shell command installed which is named ‘head’ but which is not the traditional head command.
Try ‘which head’ to figure out where it is from.
_ 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
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
Excellent. I grabbed the source from apple and compiled a fresh copy. I can now use the commands.
Thanks again.
On Nov 8, 2006, at 11:32 AM, Brad Choate wrote:
When you install the Perl LWP module, it adds a HEAD, GET, POST, etc. set of commands to /usr/bin.
Unfortunate, since HFS+ on Mac OS doesn't differentiate between head and HEAD. In fact, the LWP install of HEAD removes the head utility. I'm amazed that the module hasn't been corrected yet to fix this problem. It's been that way for some time.
So you'll need to find another copy of the head utility and restore it to /usr/bin.
-Brad
On Nov 8, 2006, at 8:18 AM, Allan Odgaard wrote:
On 8. Nov 2006, at 17:04, Michael Gregoire wrote:
When trying to use the "Level 1 [setext]" or "Level 2 [setext]" bundle commands I get the following output [...]
You have a shell command installed which is named ‘head’ but which is not the traditional head command.
Try ‘which head’ to figure out where it is from.
_ 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
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
Thanks Allan.
On Nov 8, 2006, at 11:18 AM, Allan Odgaard wrote:
On 8. Nov 2006, at 17:04, Michael Gregoire wrote:
When trying to use the "Level 1 [setext]" or "Level 2 [setext]" bundle commands I get the following output [...]
You have a shell command installed which is named ‘head’ but which is not the traditional head command.
Try ‘which head’ to figure out where it is from.
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