Skip to main content

Also

touch ./-stuff

"Oops! Your answer couldn't be submitted because: body must be at least 30 characters; you entered 19" What happens here: for "usual" filenames the current directory (./) is implied and thus unnecessary. I hope now IHowever, we can ;-explicitly specify it with ./ (it's just redundant in normal cases); this way, the argument won't start with - and won't be parsed as an option, but as a filename.

Also

touch ./-stuff

"Oops! Your answer couldn't be submitted because: body must be at least 30 characters; you entered 19". I hope now I can ;-)

Also

touch ./-stuff

What happens here: for "usual" filenames the current directory (./) is implied and thus unnecessary. However, we can explicitly specify it with ./ (it's just redundant in normal cases); this way, the argument won't start with - and won't be parsed as an option, but as a filename.

Source Link
greenoldman
  • 6.5k
  • 17
  • 58
  • 69

Also

touch ./-stuff

"Oops! Your answer couldn't be submitted because: body must be at least 30 characters; you entered 19". I hope now I can ;-)