Penguin

Differences between version 59 and predecessor to the previous major change of BashNotes.

Other diffs: Previous Revision, Previous Author, or view the Annotated Edit History

Newer page: version 59 Last edited on Wednesday, August 27, 2008 6:49:29 am by AdrianHo Revert
Older page: version 58 Last edited on Saturday, April 21, 2007 11:59:58 am by IanMcDonald Revert
@@ -404,11 +404,19 @@
  
 Say you have a file called '--test'. 
 If you wanted to use vim to edit this file then you would do: 
  
-* vim -- --test 
+<verbatim>  
+ vim -- --test  
+</verbatim>  
  
 The '--' tells the command that what follows is an argument, NOT to interpret them as options. 
+  
+AdrianHo: Note that not all programs accept '--' as an "end of options" marker. A more reliable method is prefixing the filename with "./", as in:  
+  
+<verbatim>  
+vim ./--test  
+</verbatim>  
  
 !How to directly interpret a shell script by the current shell. (Without forking a subshell) 
  
 *. <myscript>