Re: [OT] punctuation (was Re: Configuring w3m for Mozilla)

2002-09-22 Thread Bob Proulx

Preben Randhol <[EMAIL PROTECTED]> [2002-09-22 10:10:49 +0200]:
> By the way there is a shell called bush which can be interesting (at
> least for scripting) : http://www.pegasoft.ca/bush.html

Interesting!  Thanks for sharing that.

Bob



msg03060/pgp0.pgp
Description: PGP signature


Re: [OT] punctuation (was Re: Configuring w3m for Mozilla)

2002-09-22 Thread Preben Randhol

Bob Proulx <[EMAIL PROTECTED]> wrote on 22/09/2002 (10:01) :
> It pains me that you used that harsh language to describe my comment.

Sorry it wasn't my intention.

> just caught up in the excitement of the moment!  :-) Those are /bin/sh
> syntax, which I prefer better than anything that depends upon
> /bin/csh.  I don't know why you thought that was bash only. [*]

Somebody mentioned that it was only ash and bash that had this command.

> Those commands are defined by SUSv2.  I am pleased that I can refer
> you to these pages for your edification.  (And perhaps mine too in the
> case that I made a mistake here.  I am only too well aware that the
> sword can cut both ways.)
> 
>   http://www.unix-systems.org/single_unix_specification_v2/xcu/type.html
> 
>   http://www.unix-systems.org/single_unix_specification_v2/xcu/command.html

Thanks.
> 
> Repeat after me, "Standard is better than better."  And then say,
> "Every programmer should strive to write portable code."  But to do

Why do you think I use Ada95 :-)

By the way there is a shell called bush which can be interesting (at
least for scripting) : http://www.pegasoft.ca/bush.html

Preben
-- 
"When Roman engineers built a bridge, they had to stand under it while
 the first legion  marched across.  If programmers today  worked under
 similar  ground rules,  they might well find  themselves getting much
 more interested in Ada!"  -- Robert Dewar


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: [OT] punctuation (was Re: Configuring w3m for Mozilla)

2002-09-21 Thread Bob Proulx

Preben Randhol <[EMAIL PROTECTED]> [2002-09-21 10:55:48 +0200]:
> Bob Proulx <[EMAIL PROTECTED]> wrote on 19/09/2002 (18:07) :
> > quote format just to be explicit.  And it makes cut-n-paste easier.
> > 
> >   which mozilla
> > 
> > But instead of that old csh script 'which' I prefer newer commands
> > such as 'command' or 'type'.  (Yes I see that on debian which is
> > now a bash script instead of a csh script.  But this is not true
> > everywhere.)
> > 
> >   type mozilla
> >
> >   command -v mozilla
> 
> Isn't it kind of stupid to suggest a bash only solution? Especially if
> you want to use this in a script like:
> 
> #!/bin/sh
> BROWSER=`which mozilla`

It pains me that you used that harsh language to describe my comment.
I never said anything about bash only syntax.  Anyone that said so was
just caught up in the excitement of the moment!  :-) Those are /bin/sh
syntax, which I prefer better than anything that depends upon
/bin/csh.  I don't know why you thought that was bash only. [*]

Those commands are defined by SUSv2.  I am pleased that I can refer
you to these pages for your edification.  (And perhaps mine too in the
case that I made a mistake here.  I am only too well aware that the
sword can cut both ways.)

  http://www.unix-systems.org/single_unix_specification_v2/xcu/type.html

  http://www.unix-systems.org/single_unix_specification_v2/xcu/command.html

Repeat after me, "Standard is better than better."  And then say,
"Every programmer should strive to write portable code."  But to do
that one must learn about systems other than their home system.  It is
a challenge and very hard to accomplish fully.  I have devoted many
years to the task and know that I will never fully achieve the goal.

The 'which' command does not have any standards behind it.  Different
systems implement it differently.  As has been pointed out by others
in this thread it is very troublesome to use portably across different
operating systems.  For example, on most operating systems it is
implemented as a #!/bin/csh script which will read a user's individual
~/.cshrc file and be affected by the contents there!

On the original BSD systems the which command was a #!/bin/csh script.
It still is on most systems.  I found it strange that on Debian it was
a bash script!  It trades one set of problems for another different
set of problems.  The man page on systems where this is a csh script
contains these warnings reproduced here.

 WARNINGS
  which reports .cshrc aliases even when not invoked from csh.

  which cannot find csh built-in commands (e.g. jobs).

  which's information may be incorrect because it is unaware of any path
  or alias changes that have occurred in the current shell session.

The POSIX shell is based upon the AT&T ksh.  Both the posix shell and
ksh define 'whence' instead of other things.  As a precompiled builtin
to those shells, which may be changed at compile time, aliases for
type are provided where type='whence -v'.  Normal ksh users have
always learned to use 'whence' as the command to find things.  Normal
csh users have always learned 'which' as the command to find things.
The old Bourne /bin/sh did neither.  It really is getting hard to find
a standard way of finding executable files!

The 'whereis' command is yet different still.  It does not look on
_your_ path.  It looks in the system provided path.  This would
include places like /usr/src, /usr/man, /usr/lib and other such places
tht might not be on your path but where the 'whereis' command might be
able to find the file you were looking for.  It finds source code, man
pages, and not just binaries.  (I am pretty sure that at one time it
would load up the path the system loaded up in /etc/rc but my memory
is faded and I may be confusing it with another command.)

I am almost ready to meantion the BSD fast find command since
mentioning 'whereis' transitions to finding general files.  We now
know the BSD fast find as the 'locate' command.  But I seriously
take this thread off topic if I do that.  :-)

Bob

Footnote [*]: 'type' works in all posix sh, ash, bash, zsh, I just
checked.  'command' works everywhere but zsh but zsh does not claim to
be a POSIX complaint shell, not suitable for /bin/sh so that is okay.
It even works in csh, on other systems like hpux, I just checked.
(HPUX probably improved the command for standards conformance.  A
standard csh, ha!)  It did not work on csh on Debian, however, did not
expect it to work and mentioned that specifically.  I am sure that
those would _not_ work on older, true Bourne shell /bin/sh systems, I
said it was a newer syntax.  Many people who used the older systems
will have learned to avoid this on Bourne shells because of that.



msg02943/pgp0.pgp
Description: PGP signature


Re: [OT] punctuation (was Re: Configuring w3m for Mozilla)

2002-09-21 Thread Bob Proulx

Colin Watson <[EMAIL PROTECTED]> [2002-09-21 15:09:40 +0100]:
> Possibly. It's hard to tell as 'command -v' is an extension to POSIX,
> not in POSIX sh itself.

It is used in SUSv3, however, and therefore should be good for anyone
that complies with that.  And actually that was specifically why I
included that in the list of possibilities.

Bob

-- 
The wonderful thing about standards are that there are so many to
choose from.



msg02893/pgp0.pgp
Description: PGP signature


Re: [OT] punctuation (was Re: Configuring w3m for Mozilla)

2002-09-21 Thread Robert Ian Smit

* Preben Randhol <[EMAIL PROTECTED]> [21-09-2002 15:57]:
> > If you are reading what he wrote again, it says that he never saw
> > scrolling text in the status bar in Mozilla, because of the option to
> > turn it off. At least that is how I understand it.
> 
> Ah I understood it as he never saw the feature in galeon :-) Anyway you
> can turn off the scrolling galeon too.

Sorry for the mess.

In my mind "that" points to annoyance, however "saw" does not feel
right with annoyance. Me an idiot.

Even worse, I never should have mentioned the status-bar issue. It
is bloody obvious. Very weak.

Thanks for pointing it out, anyway.

Bob


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: [OT] punctuation (was Re: Configuring w3m for Mozilla)

2002-09-21 Thread Colin Watson

On Sat, Sep 21, 2002 at 03:58:30PM +0200, Preben Randhol wrote:
> Colin Watson <[EMAIL PROTECTED]> wrote on 21/09/2002 (15:55) :
> > I regard portable scripts as ones that work on systems other than
> > Debian. In particular, I need that condition in my work environment.
> > Also the script above has a bug that as far as I can tell can't be
> > fixed properly without a complete rewrite (#94507).
> 
> ok so if I write a script I must spesify that it should be either ash or
> bash.

No, the best thing to do for portable scripts is to specify /bin/sh and
use only standardized syntax. (Unfortunately the POSIX sh specification
is payware ... but SUSv2 at least comes close.)

Many systems don't have either ash or bash. Some that do don't have them
in /bin, so you can't just say '#! /bin/bash', and the #! executable
interpreter mechanism doesn't search the $PATH. /bin/sh is really all
you can rely upon there.

> Do all versions of these provide command -v with the same
> functionality?

Possibly. It's hard to tell as 'command -v' is an extension to POSIX,
not in POSIX sh itself.

> Partability between UNIXes is not easy at all as most of the time the
> commands take different flags so you need to make versions for the
> different flavours. 

That's why standards are there. Coming up with versions for different
Unix flavours should be avoided where possible - it quickly turns into a
nightmare.

-- 
Colin Watson  [[EMAIL PROTECTED]]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: [OT] punctuation (was Re: Configuring w3m for Mozilla)

2002-09-21 Thread Preben Randhol

Colin Watson <[EMAIL PROTECTED]> wrote on 21/09/2002 (15:55) :
> 
> I regard portable scripts as ones that work on systems other than
> Debian. In particular, I need that condition in my work environment.
> Also the script above has a bug that as far as I can tell can't be
> fixed properly without a complete rewrite (#94507).

ok so if I write a script I must spesify that it should be either ash or
bash. Do all versions of these provide command -v with the same
functionality?

Partability between UNIXes is not easy at all as most of the time the
commands take different flags so you need to make versions for the
different flavours. 
-- 
Preben Randhol  http://www.pvv.org/~randhol/ --
"Violence is the last refuge of the incompetent", Isaac Asimov


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: [OT] punctuation (was Re: Configuring w3m for Mozilla)

2002-09-21 Thread Preben Randhol

Michael Kristensen <[EMAIL PROTECTED]> wrote on 21/09/2002 (15:53) :
> * Preben Randhol <[EMAIL PROTECTED]> [2002-09-21 15:42:17]:
> > Robert Ian Smit <[EMAIL PROTECTED]> wrote on 21/09/2002 (11:25) :
> > > pointing to. If I remember correctly, I never saw that in Mozilla.
> > ^^^
> > galeon?
> 
> If you are reading what he wrote again, it says that he never saw
> scrolling text in the status bar in Mozilla, because of the option to
> turn it off. At least that is how I understand it.

Ah I understood it as he never saw the feature in galeon :-) Anyway you
can turn off the scrolling galeon too.

-- 
Preben Randhol  http://www.pvv.org/~randhol/ --
"Violence is the last refuge of the incompetent", Isaac Asimov


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: [OT] punctuation (was Re: Configuring w3m for Mozilla)

2002-09-21 Thread Colin Watson

On Sat, Sep 21, 2002 at 03:44:38PM +0200, Preben Randhol wrote:
> Colin Watson <[EMAIL PROTECTED]> wrote on 21/09/2002 (11:51) :
> > Well, obviously if you're using #! /bin/sh then you don't need to
> > worry about what csh will make of it. Actually 'type' works in bash,
> > ash, and zsh, while 'command -v' works in bash and ash. Both are
> > extensions to the strict POSIX shell syntax, though.
> 
> but if you run which then you have trhis script (on Debian at least)
> #!/bin/bash
> unalias -a
> unset -- "$@" &> /dev/null
> enable -n -- "$@" &> /dev/null
> type -p "$@"
> 
> so this should also work in tcsh as long as bash is installed ?

I regard portable scripts as ones that work on systems other than
Debian. In particular, I need that condition in my work environment.
Also the script above has a bug that as far as I can tell can't be fixed
properly without a complete rewrite (#94507).

Cheers,

-- 
Colin Watson  [[EMAIL PROTECTED]]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: [OT] punctuation (was Re: Configuring w3m for Mozilla)

2002-09-21 Thread Michael Kristensen

* Preben Randhol <[EMAIL PROTECTED]> [2002-09-21 15:42:17]:
> Robert Ian Smit <[EMAIL PROTECTED]> wrote on 21/09/2002 (11:25) :
> > In Mozilla I could prevent websites to change the status-bar
> > message. I am not sure if this does what I think it does. But a big
> > annoyance is scrolling text that prevents seeing where a link is
> > pointing to. If I remember correctly, I never saw that in Mozilla.
> ^^^
> galeon?

If you are reading what he wrote again, it says that he never saw
scrolling text in the status bar in Mozilla, because of the option to
turn it off. At least that is how I understand it.

--
Michael "tazz" Kristensen <[EMAIL PROTECTED]>
http://tazz.wtf.dk/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: [OT] punctuation (was Re: Configuring w3m for Mozilla)

2002-09-21 Thread Preben Randhol

Colin Watson <[EMAIL PROTECTED]> wrote on 21/09/2002 (11:51) :
> 
> Well, obviously if you're using #! /bin/sh then you don't need to
> worry about what csh will make of it. Actually 'type' works in bash,
> ash, and zsh, while 'command -v' works in bash and ash. Both are
> extensions to the strict POSIX shell syntax, though.

but if you run which then you have trhis script (on Debian at least)
#!/bin/bash
unalias -a
unset -- "$@" &> /dev/null
enable -n -- "$@" &> /dev/null
type -p "$@"

so this should also work in tcsh as long as bash is installed ?

> > Although it also puzzels me why people use mozilla when galeon has a
> > much better interface.
> 
> I can't stand galeon's interface: it feels too clunky and doesn't
> respond to me in the way I want. mozilla's interface is much smoother
> for me.
> 
> That should prove that it's a matter of taste. :)

yes, indeed ;-)

-- 
Preben Randhol  http://www.pvv.org/~randhol/ --
"Violence is the last refuge of the incompetent", Isaac Asimov


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: [OT] punctuation (was Re: Configuring w3m for Mozilla)

2002-09-21 Thread Preben Randhol

Robert Ian Smit <[EMAIL PROTECTED]> wrote on 21/09/2002 (11:25) :
> In Mozilla I could prevent websites to change the status-bar
> message. I am not sure if this does what I think it does. But a big
> annoyance is scrolling text that prevents seeing where a link is
> pointing to. If I remember correctly, I never saw that in Mozilla.
^^^
galeon?

Go to the preferences under Advanced and Filtering and you can turn it
off there. I have galeon 1.2.5.

Preben


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: [OT] punctuation (was Re: Configuring w3m for Mozilla)

2002-09-21 Thread Colin Watson

On Sat, Sep 21, 2002 at 10:55:48AM +0200, Preben Randhol wrote:
> Bob Proulx <[EMAIL PROTECTED]> wrote on 19/09/2002 (18:07) :
> >   type mozilla
> > 
> >   command -v mozilla
> 
> Isn't it kind of stupid to suggest a bash only solution? Especially if
> you want to use this in a script like:
> 
> #!/bin/sh
> BROWSER=`which mozilla`

Well, obviously if you're using #! /bin/sh then you don't need to worry
about what csh will make of it. Actually 'type' works in bash, ash, and
zsh, while 'command -v' works in bash and ash. Both are extensions to
the strict POSIX shell syntax, though.

Unfortunately there is no easy portable way to do 'which'. On some
systems and shells you'll find 'which' outputting extra stuff (say,
"mozilla is /usr/bin/mozilla"), which will break your script. At work I
resorted to writing a short shell script which iterates through $PATH
manually in order to make 'which' work everywhere.

> Although it also puzzels me why people use mozilla when galeon has a
> much better interface.

I can't stand galeon's interface: it feels too clunky and doesn't
respond to me in the way I want. mozilla's interface is much smoother
for me.

That should prove that it's a matter of taste. :)

-- 
Colin Watson  [[EMAIL PROTECTED]]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: [OT] punctuation (was Re: Configuring w3m for Mozilla)

2002-09-21 Thread Robert Ian Smit

* Preben Randhol <[EMAIL PROTECTED]> [21-09-2002 10:56]:
> Although it also puzzels me why people use mozilla when galeon has a
> much better interface.

Agreed, one thing I miss though. (Please make my day if this is also
possible within Galeon.)

In Mozilla I could prevent websites to change the status-bar
message. I am not sure if this does what I think it does. But a big
annoyance is scrolling text that prevents seeing where a link is
pointing to. If I remember correctly, I never saw that in Mozilla.

Now we're on the topic of Galeon anyway. I am not sure that
zap-colors (a bookmarklet that changes for instance pink text on
yellow background to black on white). I haven't been able to do this
recently. I assume that this has to do with fancy stuff like style
sheets and other stuff I know nothing about. 

Does anyone know a website that this bookmarklet should work on? I
want to be sure I am not wasting my eyes when an obvious solution is
available that now is broken for one reason or another.

Bob

p.s. if you want to answer my question but are ashamed to reveal
knowledge of a website with questionable layout (and usually
content), please reply in a private message. I can keep a secret ;-)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: [OT] punctuation (was Re: Configuring w3m for Mozilla)

2002-09-21 Thread Mark L. Kahnt

On Sat, 2002-09-21 at 04:55, Preben Randhol wrote:

[SNIP!!!]
> 
> Although it also puzzels me why people use mozilla when galeon has a
> much better interface.
> 
> -- 
> Preben Randhol  http://www.pvv.org/~randhol/ --
> "Violence is the last refuge of the incompetent", Isaac Asimov
> 
> 

Galeon has a *different* interface, which for some proves to be much
better. It depends on individual tastes - once I imported my bookmarks,
Galeon never quite worked the way the original installation presented.
Mozilla works enough like Netscape that it is a familiar interface for
many people, and as Galeon depends on it anyhow, for some people it
becomes a question of "Why use the extra code, when Mozilla is there
already?"

It is a variation of the vi vs. emacs crusades, or Open Look vs. Motif,
or GNOME vs. KDE (or in some circles, Linux vs. BSD vs. the Hurd.) Trust
people to find which browser they prefer, based on familiarity, needs
and constructive individual experience - as long as it respects Internet
standards and doesn't launch viruses or worms, if it is effective for
the user, then good for them.
-- 
Mark L. Kahnt, FLMI/M, ALHC, HIA, AIAA, ACS, MHP
ML Kahnt New Markets Consulting
Tel: (613) 531-8684 / (613) 539-0935
Email: [EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: [OT] punctuation (was Re: Configuring w3m for Mozilla)

2002-09-21 Thread Preben Randhol

Bob Proulx <[EMAIL PROTECTED]> wrote on 19/09/2002 (18:07) :
> quote format just to be explicit.  And it makes cut-n-paste easier.
> 
>   which mozilla
> 
> But instead of that old csh script 'which' I prefer newer commands
> such as 'command' or 'type'.  (Yes I see that on debian which is now a
> bash script instead of a csh script.  But this is not true everywhere.)
> 
>   type mozilla
> 
>   command -v mozilla

Isn't it kind of stupid to suggest a bash only solution? Especially if
you want to use this in a script like:

#!/bin/sh
BROWSER=`which mozilla`

Although it also puzzels me why people use mozilla when galeon has a
much better interface.

-- 
Preben Randhol  http://www.pvv.org/~randhol/ --
"Violence is the last refuge of the incompetent", Isaac Asimov


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: [OT] punctuation (was Re: Configuring w3m for Mozilla)

2002-09-20 Thread DvB

[EMAIL PROTECTED] (Bob Proulx) writes:

> DvB <[EMAIL PROTECTED]> [2002-09-20 16:50:14 -0500]:
> > csj <[EMAIL PROTECTED]> writes:
> > 
> > > On Fri, 20 Sep 2002 01:20:21 -0600
> > > [EMAIL PROTECTED] (Bob Proulx) wrote:
> > 
> > > unless I under-read the man page, can't do wild-card history searches.
> 
> For the record I did not write that.  csj <[EMAIL PROTECTED]> wrote
> that.  I realize we both look the same on the computer display.  :-)


Hmm... I thought I was following up to the sender's
message... sorry. You do look exactly the same on my computer :-)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: [OT] punctuation (was Re: Configuring w3m for Mozilla)

2002-09-20 Thread Bob Proulx

DvB <[EMAIL PROTECTED]> [2002-09-20 16:50:14 -0500]:
> csj <[EMAIL PROTECTED]> writes:
> 
> > On Fri, 20 Sep 2002 01:20:21 -0600
> > [EMAIL PROTECTED] (Bob Proulx) wrote:
> 
> > unless I under-read the man page, can't do wild-card history searches.

For the record I did not write that.  csj <[EMAIL PROTECTED]> wrote
that.  I realize we both look the same on the computer display.  :-)

Bob



msg02764/pgp0.pgp
Description: PGP signature


Re: [OT] punctuation (was Re: Configuring w3m for Mozilla)

2002-09-20 Thread DvB

csj <[EMAIL PROTECTED]> writes:

> On Fri, 20 Sep 2002 01:20:21 -0600
> [EMAIL PROTECTED] (Bob Proulx) wrote:

> unless I under-read the man page, can't do wild-card history searches.



I haven't tried this, but you might be able to remap emacs'
regexp-isearch-backward to something that doesn't require hitting ESC
(the default shortcut of M-C-r doesn't appear to work) and use that for
wildcard history searches in bash.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: [OT] punctuation (was Re: Configuring w3m for Mozilla)

2002-09-20 Thread csj

On Fri, 20 Sep 2002 01:20:21 -0600
[EMAIL PROTECTED] (Bob Proulx) wrote:

>  > > > > I'm curious. In what packages can you find these commands?
>  > > >   apt-cache show mozilla-browser
>  > > I think he was looking for 'type' and 'command', not 'mozilla'.
> 
>  Oh, okay.  I parsed the grammer the other way.  The messages are the
>  almost same when the command you are looking for, mozilla in this
>  case, is not found.
> 
>  > And they're builtin commands if 'bash' is your shell (and maybe
>  > others).
> 
>  Hopefully lots of others.  Those are defined by standards such as
>  SUSv3.  I expect every standard shell to have them.  And by standard
>  that does leave out csh.  ;-)  But any shell that claims to be a
>  POSIX shell that could function as /bin/sh on a modern system should
>  be good to go for those.

echo $SHELL 
/bin/tcsh

You mean this creature isn't POSIX-compliant? I find tcsh to be a more
powerfull shell than bash (and this from a big GNU fan). e.g. Bash,
unless I under-read the man page, can't do wild-card history searches.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: [OT] punctuation (was Re: Configuring w3m for Mozilla)

2002-09-19 Thread Bob Proulx

> > > > I'm curious. In what packages can you find these commands?
> > >   apt-cache show mozilla-browser
> > I think he was looking for 'type' and 'command', not 'mozilla'.

Oh, okay.  I parsed the grammer the other way.  The messages are the
almost same when the command you are looking for, mozilla in this
case, is not found.

> And they're builtin commands if 'bash' is your shell (and maybe others).

Hopefully lots of others.  Those are defined by standards such as
SUSv3.  I expect every standard shell to have them.  And by standard
that does leave out csh.  ;-)  But any shell that claims to be a POSIX
shell that could function as /bin/sh on a modern system should be good
to go for those.

Bob



msg02654/pgp0.pgp
Description: PGP signature


Re: [OT] punctuation (was Re: Configuring w3m for Mozilla)

2002-09-19 Thread Craig Dickson

csj wrote:

> vega:~> type mozilla
> type: Command not found.
> vega:~> command -v mozilla
> command: Command not found.
> 
> I'm curious. In what packages can you find these commands?

Bash -- they're shell builtins. Not sure what other shells support them.
What shell are you using?

Craig


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: [OT] punctuation (was Re: Configuring w3m for Mozilla)

2002-09-19 Thread Patrick Wiseman

On Thu, 19 Sep 2002, I wrote:

> On Thu, 19 Sep 2002, Bob Proulx wrote:
> 
> > csj <[EMAIL PROTECTED]> [2002-09-20 07:21:58 +0800]:
> > > vega:~> type mozilla
> > > type: Command not found.
> > > vega:~> command -v mozilla
> > > command: Command not found.
> > > 
> > > I'm curious. In what packages can you find these commands?
> > 
> >   apt-cache show mozilla-browser
> 
> I think he was looking for 'type' and 'command', not 'mozilla'.

And they're builtin commands if 'bash' is your shell (and maybe others).

So, OP, what's your shell?

-- 
Patrick Wiseman   [EMAIL PROTECTED]
Linux user #17943 *Google First, Ask Later*


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: [OT] punctuation (was Re: Configuring w3m for Mozilla)

2002-09-19 Thread Patrick Wiseman

On Thu, 19 Sep 2002, Bob Proulx wrote:

> csj <[EMAIL PROTECTED]> [2002-09-20 07:21:58 +0800]:
> > vega:~> type mozilla
> > type: Command not found.
> > vega:~> command -v mozilla
> > command: Command not found.
> > 
> > I'm curious. In what packages can you find these commands?
> 
>   apt-cache show mozilla-browser

I think he was looking for 'type' and 'command', not 'mozilla'.

Patrick

-- 
Patrick Wiseman   [EMAIL PROTECTED]
Linux user #17943 *Google First, Ask Later*


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: [OT] punctuation (was Re: Configuring w3m for Mozilla)

2002-09-19 Thread Bob Proulx

csj <[EMAIL PROTECTED]> [2002-09-20 07:21:58 +0800]:
> vega:~> type mozilla
> type: Command not found.
> vega:~> command -v mozilla
> command: Command not found.
> 
> I'm curious. In what packages can you find these commands?

  apt-cache show mozilla-browser

Bob



msg02602/pgp0.pgp
Description: PGP signature


Re: [OT] punctuation (was Re: Configuring w3m for Mozilla)

2002-09-19 Thread Robert Ian Smit

* DvB <[EMAIL PROTECTED]> [19-09-2002 17:59]:
> I was merely following commonly accepted punctuation rules for American
> English which state that, when a comma (or period) follows a quoted
> passage, the comma should be placed before the final quote. 

Oh man, now I can't sleep before I remember those rules for the
Dutch language. 

If I remember correctly those rules were relaxed. Only use a comma
if the meaning of the sentence dictates it or if it improves
readability. Makes sense to me, but have to be sure. Where's google?

Bob


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: [OT] punctuation (was Re: Configuring w3m for Mozilla)

2002-09-19 Thread csj

On 19 Sep 2002 11:22:05 -0500
DvB <[EMAIL PROTECTED]> wrote:

> [EMAIL PROTECTED] (Bob Proulx) writes:
> > DvB <[EMAIL PROTECTED]> [2002-09-19 10:50:34 -0500]:
[snip]
> > I have taken to offsetting in a block
> > quote format just to be explicit.  And it makes cut-n-paste easier.
> > 
> >   which mozilla
> > 
> > But instead of that old csh script 'which' I prefer newer commands
> > such as 'command' or 'type'.  (Yes I see that on debian which is now
> > a bash script instead of a csh script.  But this is not true
> > everywhere.)
> > 
> >   type mozilla
> > 
> >   command -v mozilla
> 
> 
> Those must be relatively new. I graduated from college pretty recently
> and only learned
> 
> which mozilla
> 
> whereis mozilla
> 
> I've always known "type" as the DOS version of cat. I also never gave
> much thought to how they were implemented before :-)

vega:~> type mozilla
type: Command not found.
vega:~> command -v mozilla
command: Command not found.

I'm curious. In what packages can you find these commands?


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: [OT] punctuation (was Re: Configuring w3m for Mozilla)

2002-09-19 Thread DvB

[EMAIL PROTECTED] (Bob Proulx) writes:

> DvB <[EMAIL PROTECTED]> [2002-09-19 10:50:34 -0500]:
> > > > try running "which mozilla," minus the quotes and the comma from the
> > > > command line.
> 
> > I was merely following commonly accepted punctuation rules for American
> > English which state that, when a comma (or period) follows a quoted
> 
> Ah, but languages were switched.  You were no longer talking American
> English but Computer User.  When talking CU new rules are applied.  At
> that time all literal strings are quoted exactly with characters you
> wish the user to type.  :-)  


You're probably right. It's hard trying to balance being pretty anal
about spelling and grammar (when I actually know the correct
spelling/usage, that is :-) and being a nerd.


> I have taken to offsetting in a block
> quote format just to be explicit.  And it makes cut-n-paste easier.
> 
>   which mozilla
> 
> But instead of that old csh script 'which' I prefer newer commands
> such as 'command' or 'type'.  (Yes I see that on debian which is now a
> bash script instead of a csh script.  But this is not true everywhere.)
> 
>   type mozilla
> 
>   command -v mozilla


Those must be relatively new. I graduated from college pretty recently
and only learned

which mozilla

whereis mozilla

I've always known "type" as the DOS version of cat. I also never gave
much thought to how they were implemented before :-)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: [OT] punctuation (was Re: Configuring w3m for Mozilla)

2002-09-19 Thread Bob Proulx

DvB <[EMAIL PROTECTED]> [2002-09-19 10:50:34 -0500]:
> > > try running "which mozilla," minus the quotes and the comma from the
> > > command line.

> I was merely following commonly accepted punctuation rules for American
> English which state that, when a comma (or period) follows a quoted

Ah, but languages were switched.  You were no longer talking American
English but Computer User.  When talking CU new rules are applied.  At
that time all literal strings are quoted exactly with characters you
wish the user to type.  :-)  I have taken to offsetting in a block
quote format just to be explicit.  And it makes cut-n-paste easier.

  which mozilla

But instead of that old csh script 'which' I prefer newer commands
such as 'command' or 'type'.  (Yes I see that on debian which is now a
bash script instead of a csh script.  But this is not true everywhere.)

  type mozilla

  command -v mozilla

Bob



msg02541/pgp0.pgp
Description: PGP signature


[OT] punctuation (was Re: Configuring w3m for Mozilla)

2002-09-19 Thread DvB

Robert Ian Smit <[EMAIL PROTECTED]> writes:

> * DvB <[EMAIL PROTECTED]> [19-09-2002 16:22]:
> > try running "which mozilla," minus the quotes and the comma from the
> > command line.
> 
> Why did you put the comma there in the first place. Is it some kind
> of notation I have never seen before?


:-)

I was merely following commonly accepted punctuation rules for American
English which state that, when a comma (or period) follows a quoted
passage, the comma should be placed before the final quote. I understand
this isn't the case with British English, but I happen to live on the
new continent, so I figure I should follow local rules.
What's more, after looking at what I wrote, there really should be
another comma after the word "comma" and before the word "from."


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Configuring w3m for Mozilla

2002-09-19 Thread Robert Ian Smit

* DvB <[EMAIL PROTECTED]> [19-09-2002 16:22]:
> try running "which mozilla," minus the quotes and the comma from the
> command line.

Why did you put the comma there in the first place. Is it some kind
of notation I have never seen before?

Now it looks like: type "which mozilla have a nice day" without the
quotes and have a nice day.

;)

Bob


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Configuring w3m for Mozilla

2002-09-19 Thread DvB

Adam Bogacki <[EMAIL PROTECTED]> writes:

> Hi,
>   Mutt goes into w3m when I open a HTML attachment,
> but when I hit 'M' to launch Mozilla, GKrellm shows the CPU
> operating at 99% ... but no Mozilla.
> 
>   I hit 'o' for the option menu and replaced the
> external viewer option with '/home/adam/.mozilla' ... 
> where is the error ?


Well... I don't know anything about mutt, but ~/.mozilla is usually a
non-executable directory containing configuration files for your mozilla
profile. I'd suggest using the correct execurable for mozilla. To find
it, try running "which mozilla," minus the quotes and the comma from the
command line.


HTH


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Configuring w3m for Mozilla

2002-09-19 Thread Matthew Weier O'Phinney

--Adam Bogacki <[EMAIL PROTECTED]> wrote
(on Friday, 20 September 2002, 12:04 AM +1000):
>   Mutt goes into w3m when I open a HTML attachment,
> but when I hit 'M' to launch Mozilla, GKrellm shows the CPU
> operating at 99% ... but no Mozilla.
> 
>   I hit 'o' for the option menu and replaced the
> external viewer option with '/home/adam/.mozilla' ... 
> where is the error ?
Set the external viewer to simply 'mozilla' or '/usr/bin/mozilla';
'~/.mozilla' is a directory containing your mozilla profile, but not the
program executable.

--Matthew


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Configuring w3m for Mozilla

2002-09-19 Thread Adam Bogacki

Hi,
Mutt goes into w3m when I open a HTML attachment,
but when I hit 'M' to launch Mozilla, GKrellm shows the CPU
operating at 99% ... but no Mozilla.

I hit 'o' for the option menu and replaced the
external viewer option with '/home/adam/.mozilla' ... 
where is the error ?

Adam Bogacki,
[EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]