- Community Home
- >
- Servers and Operating Systems
- >
- Legacy
- >
- Operating System - Tru64 Unix
- >
- Tru64 v5.1 Rev.732 .profile $PATH question
Operating System - Tru64 Unix
1777312
Members
3103
Online
109068
Solutions
Forums
Categories
Company
Local Language
юдл
back
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
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
тАО05-05-2003 07:18 PM
тАО05-05-2003 07:18 PM
What does "-" implies in the .profile path??
PATH=$HOME/bin:${PATH:-/usr/bin:.}
Removing the "-" will cause bad substitution.
Why Tru64 have its part of the PATH to be substitute as ${PATH:-/usr/bin:.}
Any implication if I move the . current dir. to outside the curly bracket??
PATH=$HOME/bin:${PATH:-/usr/bin:.}
Removing the "-" will cause bad substitution.
Why Tru64 have its part of the PATH to be substitute as ${PATH:-/usr/bin:.}
Any implication if I move the . current dir. to outside the curly bracket??
tyl
Solved! Go to Solution.
- Tags:
- PATH
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-05-2003 11:16 PM
- Tags:
- variable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-05-2003 11:25 PM
тАО05-05-2003 11:25 PM
Re: Tru64 v5.1 Rev.732 .profile $PATH question
The :- performs a conditional substitution. See sh(1b):
${ variable:-string }
If the variable is set and is not null, substitute the value of variable in place of this expression. Otherwise, replace this expression with the value of string.
In the .profile the conditional subsitution is used to generate /usr/bin:. if PATH has not yet been set.
${ variable:-string }
If the variable is set and is not null, substitute the value of variable in place of this expression. Otherwise, replace this expression with the value of string.
In the .profile the conditional subsitution is used to generate /usr/bin:. if PATH has not yet been set.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP