Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tr: improve -d option #367

Merged
merged 1 commit into from
Dec 5, 2023
Merged

tr: improve -d option #367

merged 1 commit into from
Dec 5, 2023

Commits on Dec 5, 2023

  1. tr: improve -d option

    * GNU tr and OpenBSD tr do not allow a 2nd argument with -d, but allow it with -ds
    
    %echo hello | perl tr -d l l # -d is ignored and l is replaced with l
    hello
    
    * Align usage string with SYNOPSIS
    * test1: delete letter l: echo hello | perl tr -d l
    * test2: delete letter l and o: echo hello | perl tr -d lo
    * test3: exchange letters e and o: echo hello | perl tr eo oe
    * Prevent $ARGV[0] from being set to undef by s/// in options loop
    mknos authored Dec 5, 2023
    Configuration menu
    Copy the full SHA
    666fa3b View commit details
    Browse the repository at this point in the history