when using cut on an empty string, the value you want to strip is removed.
Imagine you want to cut dashes from an input string:
If value is "2019-12-30" the output will be "20191230"
However, if value is an empty string ("") the output is "-".
This seems the opposite of what I would expect based on the description:
Removes all values of arg from the given string.
when using
cuton an empty string, the value you want to strip is removed.Imagine you want to cut dashes from an input string:
If value is
"2019-12-30"the output will be"20191230"However, if value is an empty string (
"") the output is"-".This seems the opposite of what I would expect based on the description: