[procps] Re: [PATCH v2] sysctl: restore old -p handling

  • From: "Kent R. Spillner" <kspillner@xxxxxxx>
  • To: procps@xxxxxxxxxxxxx
  • Date: Thu, 3 May 2012 14:46:13 -0500 (CDT)

Hey, dude-

> That said I wonder if the argument should use glob(3)
> 
> sake@sake /home/src/procps-ng cat ~/foo
> non.sense.example = foobar
> 
> sake@sake /home/src/procps-ng ./sysctl -p ~/foo
> lt-sysctl: cannot stat /proc/sys/non/sense/example: No such file or directory
> sake@sake /home/src/procps-ng ./sysctl -p~/foo
> lt-sysctl: cannot open "~/foo": No such file or directory

-1

You're adding a lot of code just to get this to work with -p<file>, which 
probably shouldn't have been supported in the first place (no spaces between 
options and arguments isn't very idiomatic).  Is it too late to just drop 
support for -p<file> altogether?

Best,
Kent



Other related posts: