On 2013-10-02 16:33, Andrey Osipov wrote:
> Is failglob meant to be used in interactive shell?
Basically, you can't use it right now if you are using completions that could
return empty globs.
pgpS0076Al6m7.pgp
Description: PGP signature
On Friday, October 4, 2013 5:10:43 AM UTC+4, Eduardo A. Bustamante López wrote:
> If you are using -e to test if a file is readable, then you're asking
>
> the wrong question. If you want to know if a file is readable, use
>
> the -r test.
>
>
>
> if [ -r some/file ]; then
>
> ... do someth
On 2013-10-04 02:18, vic...@vsespb.ru wrote:
> > The operating system is (on purpose) not letting you know if that file
> > exists or not
>
> OS is not lying about file existence. It returns "permission denied" error,
> which means file may or may not exist.
Nobody said the OS is lying, it's merel
I tried to use "read -t 0" to check if there is any data on the STDIN or not.
The man page said:
If timeout is 0, read returns success if input is available on the specified
file descriptor, failure otherwise.
Maybe I made a mistake but I tested and I got variable results:
arpad@terminus ~ $ f
On 10/04/2013 03:18 AM, vic...@vsespb.ru wrote:
>
>> The operating system is (on purpose) not letting you know if that file
>> exists or not
> OS is not lying about file existence. It returns "permission denied" error,
> which means file may or may not exist.
If you care about the difference be
On Friday, October 4, 2013 3:41:58 PM UTC+4, Eric Blake wrote:
> If you care about the difference between ENOENT and EPERM, then write
> your program in C or other language, not shell. There is no way for the
> shell to tell you what errno the OS returned.
I was talking only about documentation c
On Fri, Oct 4, 2013 at 2:20 PM, Kunszt Árpád <
arpad.kun...@syrius-software.hu> wrote:
> I tried to use "read -t 0" to check if there is any data on the STDIN or
> not.
>
> The man page said:
>
> If timeout is 0, read returns success if input is available on the
> specified file descriptor, failur
On 2013. October 4. 14:51:00 Pierre Gaston wrote:
> On Fri, Oct 4, 2013 at 2:20 PM, Kunszt Árpád
...
>
>
> There is a race condition, you cannot know if echo will run before read.
I see, and it's logical. But this stills confuses me.
arpad@terminus ~ $ for(( i=0; i<10; i++ )); do echo -n "" |
On Fri, Oct 4, 2013 at 3:08 PM, Kunszt Árpád <
arpad.kun...@syrius-software.hu> wrote:
> On 2013. October 4. 14:51:00 Pierre Gaston wrote:
> > On Fri, Oct 4, 2013 at 2:20 PM, Kunszt Árpád
> ...
> >
> >
> > There is a race condition, you cannot know if echo will run before read.
>
> I see, and it's
On Fri, Oct 4, 2013 at 3:29 PM, Pierre Gaston wrote:
>
>
>
> On Fri, Oct 4, 2013 at 3:08 PM, Kunszt Árpád <
> arpad.kun...@syrius-software.hu> wrote:
>
>> On 2013. October 4. 14:51:00 Pierre Gaston wrote:
>> > On Fri, Oct 4, 2013 at 2:20 PM, Kunszt Árpád
>> ...
>> >
>> >
>> > There is a race condi
On Fri, Oct 4, 2013 at 3:30 PM, Pierre Gaston wrote:
>
>
>
> On Fri, Oct 4, 2013 at 3:29 PM, Pierre Gaston wrote:
>
>>
>>
>>
>> On Fri, Oct 4, 2013 at 3:08 PM, Kunszt Árpád <
>> arpad.kun...@syrius-software.hu> wrote:
>>
>>> On 2013. October 4. 14:51:00 Pierre Gaston wrote:
>>> > On Fri, Oct 4, 20
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 10/4/13 3:32 AM, Chris Down wrote:
> On 2013-10-02 16:33, Andrey Osipov wrote:
>> Is failglob meant to be used in interactive shell?
>
> Basically, you can't use it right now if you are using completions that could
> return empty globs.
This just
On 2013-10-04 09:35, Chet Ramey wrote:
> On 10/4/13 3:32 AM, Chris Down wrote:
> > On 2013-10-02 16:33, Andrey Osipov wrote:
> >> Is failglob meant to be used in interactive shell?
> >
> > Basically, you can't use it right now if you are using completions that
> > could
> > return empty globs.
>
>
13 matches
Mail list logo