bug-bash
[Top][All Lists]
Advanced

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

Assignment errors with no additional words expanded in non-POSIX mode fa


From: Dan Douglas
Subject: Assignment errors with no additional words expanded in non-POSIX mode fails to abort
Date: Fri, 11 Jan 2013 12:17:49 -0600
User-agent: KMail/4.8.3 (Linux/3.4.6-pf+; KDE/4.8.3; x86_64; ; )

Whether or not this type of error aborts depends upon there being an actual 
newline.

    $ bash -c 'echo pre; foo=$((8#9)); echo post' 2>&1
    pre
    bash: 8#9: value too great for base (error token is "8#9")

    $ bash -c $'echo pre\nfoo=$((8#9))\necho post' 2>&1
    pre
    bash: line 1: 8#9: value too great for base (error token is "8#9")
    post

Only applies to non-POSIX mode.
-- 
Dan Douglas

Attachment: signature.asc
Description: This is a digitally signed message part.


reply via email to

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