The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



Thread: double dashes
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 05-18-2006
thestevew thestevew is offline
Registered User
 

Join Date: Mar 2006
Location: South Yorkshire, UK
Posts: 114
The "--" option for print allows you to print strings starting with a "-".

e.g. without --
Code:
 
$print "- some text"
ksh: print: 0403-010 A specified flag is not valid for this command.
with --
Code:
$ print -- "- some text"
- some text
Print -r (raw print) works too but also ignores escape sequences.

cheers
Reply With Quote