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

silence awk: cmd. line:1: warning #2925

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Aug 13, 2022

  1. silence awk: cmd. line:1: warning

    When using Includes with ssh/config
    esp:
    ---config--- 
    Include config.d/*
    Include config.d/**/*
    ---
    ssh host<tab>
    causes a warning and obfuscates the completions.
    awk: cmd. line:1: warning: command line argument `/Users/yourHome/.ssh/config.d/SetOfHosts' is a directory: skipped
    
    AWK has a long history of having strong feelings against directories, going back to the POSIX version, and would terminate.
    This is an order of magnitude along that of clowns' dislike of mimes but with age awk's strong feelings toward directories "mellowed" into warnings (gawk).
    
    Sometimes we just need bash completions without the editorial opinions from awk and this appears to be the best move to silence a AWK.
    colicarr committed Aug 13, 2022
    Configuration menu
    Copy the full SHA
    06fe6aa View commit details
    Browse the repository at this point in the history