Skip to main content
make it clear that the last approach does not work. Strike was obscuring the real thing but the current one can be overlooked
Source Link

Just prefix it with ./:

less ./- 

Or use redirection:

less < - 

Note that since - (as opposed to -x or --foo-- for instance) is considered a special filename rather than an option, the following doesn't work:

less -- - # THIS DOES NOT WORK 

won't work.

Just prefix it with ./:

less ./- 

Or use redirection:

less < - 

Note that since - (as opposed to -x or --foo-- for instance) is considered a special filename rather than an option,

less -- - 

won't work.

Just prefix it with ./:

less ./- 

Or use redirection:

less < - 

Note that since - (as opposed to -x or --foo-- for instance) is considered a special filename rather than an option, the following doesn't work:

less -- - # THIS DOES NOT WORK 
The <strike> obscured the thing you were trying to illustrate. Better wording.
Source Link

Just prefix it with ./:

less ./- 

Or use redirection:

less < - 

Note that since - (as opposed to -x or --foo-- for instance) is not considered asa special filename rather than an option, things like:

less -- -
less -- - 

won't work..

Just prefix it with ./:

less ./- 

Or use redirection:

less < - 

Note that since - (as opposed to -x or --foo-- for instance) is not considered as an option, things like:

less -- -

won't work..

Just prefix it with ./:

less ./- 

Or use redirection:

less < - 

Note that since - (as opposed to -x or --foo-- for instance) is considered a special filename rather than an option,

less -- - 

won't work.

added 171 characters in body
Source Link
Stéphane Chazelas
  • 586.4k
  • 96
  • 1.1k
  • 1.7k

Just prefix it with ./:

less ./- 

Or use redirection:

less < - 

Note that since - (as opposed to -x or --foo-- for instance) is not considered as an option, things like:

less -- -

won't work..

Just prefix it with ./:

less ./- 

Or use redirection:

less < - 

Just prefix it with ./:

less ./- 

Or use redirection:

less < - 

Note that since - (as opposed to -x or --foo-- for instance) is not considered as an option, things like:

less -- -

won't work..

sorry, hijacking your answer, probably not worth adding another answer for that.
Source Link
Stéphane Chazelas
  • 586.4k
  • 96
  • 1.1k
  • 1.7k
Loading
Source Link
Howard
  • 5.3k
  • 5
  • 32
  • 34
Loading