Dear Coreutils Team,

I hope this message finds you well. I am writing to propose a feature
enhancement for the mkdir command. This enhancement introduces a new -a
option for handling single-directory names with spaces or special
formatting.
Proposed Functionality

   1.

   *Handling Spaces*: Create directories with spaces in their names without
   requiring manual quoting or escaping.
   Example:

   mkdir "this is a single directory file name" -a

   *Expected Result*: A directory named this is a single directory file name
   is created.
   2.

   *Replacing Spaces with Underscores*: Introduce an additional option (
   --convert-underscores) to replace spaces with underscores in directory
   names.
   Example:

   mkdir "this is a single directory file name" -a --convert-underscores

   *Expected Result*: A directory named this_is_a_single_directory_file_name
   is created.

Rationale

Currently, users must manually quote or escape directory names with spaces
or special characters, which can be inconvenient. This proposed feature
would:

   - Simplify directory creation workflows.
   - Improve usability for both interactive use and script-based
   environments.
   - Enhance compatibility with systems or workflows where spaces in names
   can cause issues.

Benefits of the Feature

   - Streamlines directory creation for names with spaces or special
   characters.
   - Reduces potential errors caused by unescaped characters.
   - Provides additional flexibility for users managing directory names
   programmatically.

Thank you for considering this feature request. I believe it could
significantly enhance the usability of the mkdir command. Please let me
know if additional information or clarification is required.

Looking forward to your feedback.

Best regards,
Ranuga Gamage
0777169804

Reply via email to