- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: : comment?
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
тАО11-07-2001 12:20 AM
тАО11-07-2001 12:20 AM
Re: : comment?
I use a dummy command from good old assembler times, cause ":" can cause these questions.
NOP=1
No OPeration :-)
Keep Assembler alive :-)
Volker
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-07-2001 04:03 AM
тАО11-07-2001 04:03 AM
Re: : comment?
the command ":" is NOT a null command! Actually everything following it is evaluated, substituteted, and such.
So after
: ${x:=wow}
the variabel "$x" conatains "wow" only if it was previously empty!
HTH,
Wodisch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-07-2001 10:43 AM
тАО11-07-2001 10:43 AM
Re: : comment?
: is not a comment. It is essentially a null command. It does not process command line args yet the shell still interprets them. It is sometimes used like a comment because it doesn't do anything and the comments are ignored arguments. The shell is doing the work.
You can create your own null command by creating an empty file. It will work just like Wodisch's example.
Darrell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-07-2001 06:45 PM
тАО11-07-2001 06:45 PM
Re: : comment?
#: ${x:=wow}
#echo $x
wow
#: echo $x
whee..aint this fun?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-07-2001 11:26 PM
тАО11-07-2001 11:26 PM
Re: : comment?
- « Previous
-
- 1
- 2
- Next »