On Wed, 19 Mar 2003, Richard Troth wrote:

> On Thu, 20 Mar 2003, John Summerfield wrote:
> > Change the first line of a shell script to
> > #!/bin/bash -x
>
> Not if you ever EVER want to run that shell script
> on a stock non-Linux UNIX host (Solaris, AIX, HP, ...).
> Don't code shell scripts that way,  gang.
>
> (John was only joking.   Yeah,  that's it!   He was foolin y'all.)

No, not joking. Do it as an exercise in self-education. It's also good
for debugging.

I suspect it won't run on a stock non-Linux UNIX host (Solaris, AIX, HP,
...). OTOH, we're talking about Linux.


>
> Like Tzafrir said:
> > Some people are known to work with tcsh or zsh, though...
We we talking about those?
>
> My point exactly!
> The world is bigger than BASH.
> Heck,  the world is bigger than Linux.
>
> Putting logon or global settings into .bashrc is a huge mistake.
> Specifically  [pun intended],  putting general purpose things
> into a special purpose thing doesn't work in general.

 Here is the standard .bashrc from RHL:
 [EMAIL PROTECTED] summer]$ cat /etc/skel/.bashrc
[EMAIL PROTECTED] summer]$ cat /etc/skel/.bashrc
# .bashrc

# User specific aliases and functions

# Source global definitions
if [ -f /etc/bashrc ]; then
        . /etc/bashrc
fi
[EMAIL PROTECTED] summer]$


Is that an invitation from the largest commercial distributor of Linux
to do what you say not to?


--


Cheers
John.

Join the "Linux Support by Small Businesses" list at
http://mail.computerdatasafe.com.au/mailman/listinfo/lssb

Reply via email to