- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: ~ not working on HP-UX 11.23
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
тАО10-19-2010 01:57 PM
тАО10-19-2010 01:57 PM
~ not working on HP-UX 11.23
SHOME=/home/shome
if [ $(whoami) = root ]
then
export HOME=$SHOME
echo $HOME
ls -ltr ~
i get $HOME printed as /home/shome.but ls -ltr ~ is displaying the root list of files instead of /home/shome/ files.
Can anyone help me in understanding why ~ is not taking $HOME?
- Tags:
- tilde
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-19-2010 04:00 PM
тАО10-19-2010 04:00 PM
Re: ~ not working on HP-UX 11.23
uname -a
man
See what it claims to do when you say "~".
My psychic powers are too weak to tell me
which shell you're using, but you might try
a different one to see if that would help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-19-2010 09:12 PM
тАО10-19-2010 09:12 PM
Re: ~ not working on HP-UX 11.23
I'm not sure what shell would work as you said?
- Tags:
- scummy C shell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-20-2010 04:08 AM
тАО10-20-2010 04:08 AM
Re: ~ not working on HP-UX 11.23
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-20-2010 09:32 AM
тАО10-20-2010 09:32 AM
Re: ~ not working on HP-UX 11.23
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-20-2010 09:34 AM
тАО10-20-2010 09:34 AM
Re: ~ not working on HP-UX 11.23
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-20-2010 10:46 AM
тАО10-20-2010 10:46 AM
Re: ~ not working on HP-UX 11.23
That's not all that it says. If you have ~name, it comes from /etc/passwd, otherwise from $HOME.