Patrick Connolly
2010-09-25 06:49:50 UTC
Has anyone tried DirB?
I read the article in Linux Journal. It took me a while to work out
that I couldn't download it from www.DirB.info/bashDirB as was stated.
What I had to do was go to www.DirB.info itself and save that text as
~/.bashDirB.
But when I tried to source that file, I get a message like this:
source ~/.bashDirB
: command not found
bash: /home/pat/.bashDirB: line 81: syntax error near unexpected token `elif'
'ash: /home/pat/.bashDirB: line 81: ` elif [ "$1" == "-" ]
17:53:41 1014>
That last line is the ballsed up command prompt. Which wouldn't be so
bad except that the cursor blinks over at the beginning of the line,
and not where one traditionally sees a prompt. It was easy enough to
deal with that by commenting out the line
PS1="\[\033]0;\w\007\]\t \!> "
There was a note in the comments to that effect (which I should have
taken as a warning) that line 18 could be commented out. But even
avoiding that problem, there's still the error message mentioned above
with line 81 which looks like this:
elif [ "$1" == "-" ]
Can somebody explain what that error message is telling us? Could it
be that something has screwed up in the process of pasting the text
from a browser window into emacs? I'm particularly puzzled by the
last line before the garbled prompt line.
Ideas gratefully accepted.
--
___ Patrick Connolly
{~._.~}
_( Y )_ Good judgment comes from experience
(:_~*~_:) Experience comes from bad judgment
(_)-(_)
_______________________________________________
NZLUG mailing list ***@linux.net.nz
http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug
I read the article in Linux Journal. It took me a while to work out
that I couldn't download it from www.DirB.info/bashDirB as was stated.
What I had to do was go to www.DirB.info itself and save that text as
~/.bashDirB.
But when I tried to source that file, I get a message like this:
source ~/.bashDirB
: command not found
bash: /home/pat/.bashDirB: line 81: syntax error near unexpected token `elif'
'ash: /home/pat/.bashDirB: line 81: ` elif [ "$1" == "-" ]
17:53:41 1014>
That last line is the ballsed up command prompt. Which wouldn't be so
bad except that the cursor blinks over at the beginning of the line,
and not where one traditionally sees a prompt. It was easy enough to
deal with that by commenting out the line
PS1="\[\033]0;\w\007\]\t \!> "
There was a note in the comments to that effect (which I should have
taken as a warning) that line 18 could be commented out. But even
avoiding that problem, there's still the error message mentioned above
with line 81 which looks like this:
elif [ "$1" == "-" ]
Can somebody explain what that error message is telling us? Could it
be that something has screwed up in the process of pasting the text
from a browser window into emacs? I'm particularly puzzled by the
last line before the garbled prompt line.
Ideas gratefully accepted.
--
___ Patrick Connolly
{~._.~}
_( Y )_ Good judgment comes from experience
(:_~*~_:) Experience comes from bad judgment
(_)-(_)
_______________________________________________
NZLUG mailing list ***@linux.net.nz
http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug