11-22-06 12:27 PM
paintedjazz@gmail.com wrote:
> I regularly use the Bourne Shell and Bash for scripts and the Bash and
> the C Shell at the command line
> with the Bash on OSX and the Bourne Shell and C Shell on Solaris. I
> don't regularly use Zsh
> but I may someday.
>
> For obvious reasons, I have a database of unix commands which I limit
> to 80 characters.
> Thus, the 80 characters must be used to give an example and also try to
> explain
> what's being done or accomplished.
What has that to do with your question below?
> Since many of the commands are shell-specific
> and some are root-specific and some are OS-specific, it's not always so
> easy.
> Clearly, the C Shell is the easiest by just including the percent sign
> at the beginning of the line
> (as if the prompt). Similarly, I have used '$' as both the root prompt
> and the Bourne Shell prompt.
> Zsh would be easy since I could get away with 'Z$' but what about the
> difference between
> the Bourne Shell and the Bash -- 'B$' would not work. Any ideas or
> thoughts?
You want to adjust your prompt specific for your shell and are looking
for a naming convention? I've seen something like that helpful...
(sh)> ls -l # POSIX shell
(bsh)> ls -l # bourne shell
(ksh)> ls -l
(zsh)> ls -l
(bash)> ls -l
Operating under user root may be indicated by using a # instead of >...
(sh)# ls -l
Janis
[ Post a follow-up to this message ]
|