bug#27942: Bug regarding "touch" command

2017-08-04 Thread Paul Eggert
L A Walsh wrote: So the touch command does the same as: echo -n >>'stdout-file' ? Not really. What was the use-case that touch needed to have the new feature? It was mainly a desire to get back to the original Unix model, where basic commands like 'touch' were thin wrappers around syst

bug#27942: Bug regarding "touch" command

2017-08-04 Thread L A Walsh
Paul Eggert wrote: L A Walsh wrote: You run "touch -". Whatever file stdout happens to be associated with, gets touched. It's the same idea as "cat -", except with stdout rather than stdin. The difference between that and updating due to write activity being mostly that ctime is also writte

bug#27942: Bug regarding "touch" command

2017-08-04 Thread Paul Eggert
L A Walsh wrote: You run "touch -". Whatever file stdout happens to be associated with, gets touched. It's the same idea as "cat -", except with stdout rather than stdin. The difference between that and updating due to write activity being mostly that ctime is also written? No, that's not a

bug#27942: Bug regarding "touch" command

2017-08-04 Thread Eric Blake
On 08/04/2017 04:09 AM, pavan kumar yalavarthi wrote: > Thanks, [top-posting is harder to read on technical lists] > Can I know why does it work in linux flavours like Red Hat Linux,Kali Linux > but not ubuntu flavours??? Perhaps you should compare 'touch --version' on the systems with differing

bug#27942: Bug regarding "touch" command

2017-08-04 Thread pavan kumar yalavarthi
Thank you for the clarification. On Aug 4, 2017 4:58 PM, "Eric Blake" wrote: > On 08/04/2017 04:09 AM, pavan kumar yalavarthi wrote: > > Thanks, > > [top-posting is harder to read on technical lists] > > > Can I know why does it work in linux flavours like Red Hat Linux,Kali > Linux > > but not

bug#27942: closed (Re: bug#27942: Bug regarding "touch" command)

2017-08-04 Thread pavan kumar yalavarthi
System > Contact help-debb...@gnu.org with problems > > > -- Forwarded message -- > From: Paul Eggert > To: pavan kumar yalavarthi , > 27942-d...@debbugs.gnu.org > Cc: > Bcc: > Date: Fri, 4 Aug 2017 00:16:23 -0700 > Subject: Re: bug#27942: Bug regarding "touch&qu

bug#27942: Bug regarding "touch" command

2017-08-04 Thread pavan kumar yalavarthi
Thanks, Can I know why does it work in linux flavours like Red Hat Linux,Kali Linux but not ubuntu flavours??? y.pavan kumar On Fri, Aug 4, 2017 at 2:31 PM, Paul Eggert wrote: > L A Walsh wrote: > >> "Touching the 'file' associated with stdout"? >> > > Yes, that's it. > > How would I (or someon

bug#27942: Bug regarding "touch" command

2017-08-04 Thread L A Walsh
Paul Eggert wrote: L A Walsh wrote: "Touching the 'file' associated with stdout"? Yes, that's it. How would I (or someone) use it? You run "touch -". Whatever file stdout happens to be associated with, gets touched. It's the same idea as "cat -", except with stdout rather than stdin.

bug#27942: Bug regarding "touch" command

2017-08-04 Thread Paul Eggert
L A Walsh wrote: "Touching the 'file' associated with stdout"? Yes, that's it. How would I (or someone) use it? You run "touch -". Whatever file stdout happens to be associated with, gets touched. It's the same idea as "cat -", except with stdout rather than stdin.

bug#27942: Bug regarding "touch" command

2017-08-04 Thread L A Walsh
Paul Eggert wrote: pavan kumar yalavarthi wrote: " *touch -* " is not working i.e., file named " - " is not being created It's not a bug. In coreutils, 'touch -' is documented to touch the standard output file, not a file named '-'. The POSIX specification for 'touch' allows either the core

bug#27942: Bug regarding "touch" command

2017-08-04 Thread Paul Eggert
pavan kumar yalavarthi wrote: " *touch -* " is not working i.e., file named " - " is not being created using *touch *command in* ubuntu* flavours , but working fine with* linux * flavours. It's not a bug. In coreutils, 'touch -' is documented to touch the standard output file, not a file nam

bug#27942: Bug regarding "touch" command

2017-08-03 Thread pavan kumar yalavarthi
" *touch -* " is not working i.e., file named " - " is not being created using *touch *command in* ubuntu* flavours , but working fine with* linux * flavours.