bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Two sequential help requests


From: Eric Blake
Subject: Re: Two sequential help requests
Date: Wed, 08 Oct 2008 20:13:26 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.17) Gecko/20080914 Thunderbird/2.0.0.17 Mnenhy/0.7.5.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Robert Carroll on 10/8/2008 3:21 PM:
> If I type ls --help (or the other GNU commands I have tried) I get a
> help listing.  However if I type the same sequence again I see the
> command line erased on hitting ENTER.  If, after the first command
> completes, I hit ENTER and then re-enter the command, it does provide
> the help listing. I am using the last UBUNTU release (Hardy Heron).
> Perhaps this behavior is what was intended since someone might argue
> that it is not necessary to issue the same command twice, but this could
> also be a bug.

Thanks for the report.  I'm not completely sure I follow what you are
complaining about; however, I don't think it is an actual bug in ls, but a
misunderstanding on your part about how the shell works.  Can you copy and
paste the lines from your terminal that show the behavior you are worried
about?  ls is not stateful: there is no way that one invocation of 'ls
- --help' can affect how the next process behaves.

Perhaps what is happening is that the command is indeed being executed
twice, but because it gives identical output, so it appears that nothing
has changed in your display.  Using a blank 'ENTER' forces an empty
command and the shell prints an extra prompt, so that you can see the
difference in output.  Depending on your shell, you can also configure the
prompt to include a command sequence id, to make it obvious by the change
in a prompt that consecutive commands have indeed resulted in otherwise
identical output.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkjtaMYACgkQ84KuGfSFAYBFIwCeIVdNs8cBsEVP9vu04pkcVRZ2
3r0AoLWnzN73xgYZ1ryC0DO2BqsotKrw
=rlqF
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]