- Community Home
- >
- Servers and Operating Systems
- >
- Legacy
- >
- Operating System - Tru64 Unix
- >
- Re: what does it mean ? "-sh: -o: bad option(s)"
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-17-2003 02:34 PM
тАО12-17-2003 02:34 PM
login: root
Password:
Last login: Thu Dec 18 11:02:05 from 134.201.8.80
Digital UNIX V4.0F (Rev. 1229); Fri Jun 15 23:20:53 CST 2001
The installation software has successfully installed your system.
There are logfiles that contain a record of your installation.
These are:
/var/adm/smlogs/install.cdf - configuration description file
/var/adm/smlogs/install.log - general log file
/var/adm/smlogs/install.FS.log - file system creation logs
/var/adm/smlogs/setld.log - log for the setld(8) utility
/var/adm/smlogs/fverify.log - verification log file
You have new mail.
-sh: -o: bad option(s)
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-17-2003 02:52 PM
тАО12-17-2003 02:52 PM
Re: what does it mean ? "-sh: -o: bad option(s)"
Ninad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-17-2003 02:56 PM
тАО12-17-2003 02:56 PM
Re: what does it mean ? "-sh: -o: bad option(s)"
This often means that the root account /.profile file has the command "set -o {something}" (Example: "set -o emacs") and the root accounts default shell is /usr/bin/sh and not /usr/bin/ksh.
An accounts default shell is defined in the /etc/passwd file and can be changed using the command chsh. I prefer ksh and therefore recommend it as the default for root.
Regards,
Dave Bechtold
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-17-2003 03:47 PM
тАО12-17-2003 03:47 PM
Re: what does it mean ? "-sh: -o: bad option(s)"
# @(#)$RCSfile: .profile.sh,v $ $Revision: 1.1.2.3 $ (DEC) $Date: 1995/06/30 14:
33:46 $
if [ ! "$DT" ]; then
stty dec crt new
fi
PATH=/sbin:/usr/sbin:/usr/bin:/usr/ccs/bin:/usr/bin/X11:/usr/local
export PATH
set -o emacs
PS1=`hostname`':$PWD>'
export PS1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-17-2003 04:04 PM
тАО12-17-2003 04:04 PM
SolutionOK, there is a "set -o emacs" in the .profile. So, is root using /usr/bin/sh shell by default?
Execute /usr/bin/chsh and if it shows...
# /usr/bin/chsh
Old shell: /usr/bin/sh
New shell:
#
Then either change it to use "/usr/bin/ksh" under the New shell: prompt. Or edit .profile and comment outor remove the line.
set -o emacs
Dave Bechtold