bug#21636: a question of the “wc” program

2015-10-06 Thread JameDam
 I have a file which is named “-l”, and I use the wc to count the file, undesirably wc requested the standard input rather than my file "-l" ,although I use it through the commandwc -lw -lit didn't work as my will, however, linux itself do not limit this kind of name style, but wc does, so

bug#21636: a question of the “wc” program

2015-10-06 Thread Stephane Chazelas
2015-10-06 10:01:15 -0600, Eric Blake: > tag 21636 notabug > thanks > > On 10/06/2015 04:49 AM, JameDam wrote: > > I have a file which is named *“-l”*, and I use the wc to count the file, > > undesirably wc requested the standard input rather than my file *"-l"* > > ,although > > I use it

bug#21636: a question of the “wc” program

2015-10-06 Thread Eric Blake
tag 21636 notabug thanks On 10/06/2015 04:49 AM, JameDam wrote: > I have a file which is named *“-l”*, and I use the wc to count the file, > undesirably wc requested the standard input rather than my file *"-l"* > ,although > I use it through the command > */wc -lw -l/* Try either of: wc -lw