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

Conversation

colicarr
Copy link

When using Includes with ssh/config
esp:
---config---
Include config.d/*
Include config.d/**/*

ssh host
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.

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.
@junegunn
Copy link
Owner

Do you still have the issue with the latest version of the code?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants