Sponsored Content
Top Forums Shell Programming and Scripting What are the differences between 'bash' and 'sh' Post 35836 by google on Thursday 8th of May 2003 05:24:32 PM
Old 05-08-2003
I am using HPUX 11.xx my shell is by default ksh

To see what options you have turned on, run the following command:
set -o

Output from my system gave me:
sh ---> set -o
Current option settings
allexport on
bgnice on
emacs off
errexit off
gmacs off
ignoreeof off
interactive on
keyword off
markdirs off
monitor on
noexec off
noclobber off
noglob off
nolog off
nounset on
privileged off
restricted off
trackall off
verbose off
vi on
viraw off
xtrace off
sh --->

If vi is not "on", you can turn it on by running the following command:
set -o vi

After that, verify its on by re-running set -o....then try using ESC-j and ESC-k to see command history..On HPUX at least, the command history and line expansion is a function of vi.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to subtract 2 hours from 'date' in shell ( /bin/sh ) script ?

I write a sh script that zip and copy to tape all files that older then 2 hours. 1. The way I choose is - touch a file with "now - 2 hours", then use fine with '! -newer' 2. Do you have any other idea to do it ? tnx. (1 Reply)
Discussion started by: yairon
1 Replies

2. Programming

i can't use 'make' in my computer?

I need to compile a file,but 'make' does not work.please tell me how to use it or need which tools? (3 Replies)
Discussion started by: dsun5
3 Replies

3. Shell Programming and Scripting

Clearify what it means under 'WHAT' when hit the 'w'-command

I wonder how I shall read the result below, especially 'what' shown below. The result was shown when I entered 'w'. E.g what is TOP? What is gosh ( what does selmgr mean?)? login@ idle JCPU PCPU what 6:15am 7:04 39 39 TOP 6:34am 6:45 45 45 TOP 6:41am ... (1 Reply)
Discussion started by: Aelgen
1 Replies

4. UNIX for Advanced & Expert Users

Terminal 'Local Echo' lost on Modem Dial-out

Can anybody help me? I am developing a utility for automating message paging to a BT alphanumeric pager. I am using a USR 56K Fax-modem connected to /dev/cuab on a Sun Ultra-10. I am using the UNIX 'tip' utility to connect to the modem and I have configured the modem as follows: Baud Rate:... (2 Replies)
Discussion started by: mybeat
2 Replies

5. Filesystems, Disks and Memory

HELP! The '/var/adm/message' file increase every few seconds???

Hi, guys, I have a big problem. I've got a sun solaris 4.1.4 workstation, and the /var/adm/message file will add one row every few seconds. It soon becomes a large file. I wander if there are some mistakes configuring the workstation. the /var/adm/message is as follow: ... (1 Reply)
Discussion started by: cloudsmell
1 Replies

6. UNIX for Dummies Questions & Answers

HELP! The '/var/adm/message' file increase every few seconds???

Hi, guys, I have a big problem. I've got a sun solaris 4.1.4 workstation, and the /var/adm/message file will add one row every few seconds. It becomes a large file in a short time. I wander if there are some mistakes configuring the workstation. the /var/adm/message is as follow: ... (3 Replies)
Discussion started by: cloudsmell
3 Replies

7. UNIX for Dummies Questions & Answers

quoting echo 'it's friday'

echo 'it's friday' why appear the > (3 Replies)
Discussion started by: yls177
3 Replies

8. IP Networking

BELKIN 'F5D5020' 16bit PCMCIA - FreeBSD HOWTO

Hey all, I've bought a few bits from Belkin who seem quite happy to support FreeBSD! Last time I bought a UPS from them and it's still going well :D I saw this on their website that the 16bit PCMCIA card was supported under FreeBSD: http://www.belkin.com/network/F5D5020.html I went to my... (0 Replies)
Discussion started by: WIntellect
0 Replies

9. Email Antispam Techniques and Email Filtering

Procmail recipe: blocking 'unsubscribe and opt-out' messages....

Here is a crude procmail recipe that I quickly created (NOT a procmail recipe expert, btw) that has been catching lots of spam (current second after the charset_spam recipe posted earlier): :0B * .*If.you.do.not.wish.to.receive...* more_spam :0B * You.requested.to.receive.this.mailing... (0 Replies)
Discussion started by: Neo
0 Replies

10. UNIX for Advanced & Expert Users

How to remove a file with a leading dash '-' in it's name?

Somehow someone created a file named '-ov' in the root directory. Given the name, the how was probably the result of some cpio command they bozo'ed. I've tried a number of different ways to get rid of it using * and ? wildcards, '\' escape patterns etc.. They all fail with " illegal option --... (3 Replies)
Discussion started by: GSalisbury
3 Replies
YASH(1) 						      General Commands Manual							   YASH(1)

NAME
yash - Yet Another Shell SYNOPSIS
yash [options] [filename [args...]] yash [options] -c command [command_name [args...]] yash [options] -s [args...] DESCRIPTION
yash is a command line shell that conforms to the POSIX.1 (IEEE Std 1003.1, 2008 Edition) standard for the most part. Actually, it is much more POSIX-compliant than other shell like bash and zsh. yash also has its own features beyond POSIX, such as: * global aliases * random numbers * socket redirections and other special redirections * right prompt * command completion OPTIONS
set - set shell options and positional parameters set [-abefhmnuvxC] [+abefhmnuvxC] [-o option] [+o option] [--] [arg...] set -o set +o The first form enables or disables the specified shell options and/or sets positional parameters to <arg>s. If no <arg>s are given, the positional parameters are not changed. If no options or <arg>s are given at all, a list of all existing variables is printed. To clear all positional parameters, use `set --'. The second form prints the current settings of the shell options in a human- readable form. The third form prints commands that can be used to restore the current option settings later. -h, --help Show this help message and exit -a --allexport Any variable is exported when assigned. -b --notify When the status of a job is changed, it is notified immediately. --notifyle Similar to -b, but only notify during line-editing. Ignored if -b is set. -e --errexit Exit the shell immediately when any simple command returns a non-zero status. +f --glob Perform pathname expansion (globbing). --caseglob Perform pathname expansion case-sensitively. --dotglob In pathname expansion, `*' and `?' match a `.' at the beginning of the filename. --markdirs In pathname expansion, directory pathnames have a `/' at the ends. --extendedglob Enable extended pathname expansion. --nullglob In pathname expansion, patterns that do not match any pathname are removed from the command line rather than left as is. -h --hashondef When a function is defined, all the commands in the function are registered in the command path cache. -m --monitor Enable job control. All jobs are run in their own process group. When the status of a job is changed, the status is reported before the next prompt. This option is enabled by default for an interactive shell. +n --exec Execute commands. This option cannot be disabled in an interactive shell. +u --unset Expand an undefined variable to an empty string. -v --verbose Echo each command to the standard error before execution. -x --xtrace After each command line is expanded, the expanded line is printed to the standard error. +C --clobber Allow redirections to overwrite existing files. --ignoreeof Do not exit when an EOF is entered. This option is effective in an interactive shell only. --braceexpand Enable brace expansion. --curasync, --curbg, --curstop A background job becomes the current job when (curasync) invoked as an asynchronous command (curbg) resumed by the bg built-in (curstop) stopped. (These options are enabled by default) --histspace Do not save lines that start with a space in the history. --posixly-correct Make the shell behave as the POSIX shell. --vi Enable vi-like editing. --emacs Enable emacs-like editing. --le-convmeta Treat 8th bit of input as a meta-key flag (regardless of terminfo). --le-noconvmeta Do not treat 8th bit of input as a meta-key flag. --le-visiblebell Alert with a flash rather than a bell. --le-promptsp Move cursor to beginning of line each time when starting line-editing. (enabled by default) --le-alwaysrp Make the right prompt always visible on the screen. --le-compdebug Print debugging information during command line completion. Options can be disabled by using `+' instead of `-'. For example, `set +a' or `set ++allexport' disables the allexport option. Prefixing `no' to a long option also disables the option. For example, `set --nounset' disables the unset option. AUTHOR
yash was written by Magicant <magicant@users.sourceforge.jp>. This manual page was written by Khalid El Fathi <khalid@elfathi.fr>, for the Debian project (and may be used by others). May 17, 2012 YASH(1)
All times are GMT -4. The time now is 07:06 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy