Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Strani messaggi d'errore

5 views
Skip to first unread message

Yoda

unread,
May 19, 2013, 3:07:59 PM5/19/13
to
Se do il "comando":
$: à
bash mi dice:
-bash: $'\303\240': command not found
sapete mica in che codice sono quei numeri? perche' da me A accento
grave e' il decimale 224 battuto nel tastierino numerico con <ALT>.
L'ottale corrispondente a (224)_10 e' (340)_8 mentre l'esadecimale e'
invece 0xe0, quindi nessuno dei due ha a che vedere con 303 240.

--
Tanti saluti

Lem Novantotto

unread,
May 19, 2013, 4:56:52 PM5/19/13
to
Yoda ha scritto:
Dal man bash:

Words of the form $'string' are treated specially. The word expands to
string, with backslash-escaped characters replaced as specified by the
ANSI C standard. Backslash escape sequences, if present, are decoded as
follows:
[...]
\nnn the eight-bit character whose value is the octal
value nnn (one to three digits)
\xHH the eight-bit character whose value is the
hexadecimal value HH (one or two
hex digits)
\uHHHH the Unicode (ISO/IEC 10646) character whose value
is the hexadecimal value
HHHH (one to four hex digits)
\UHHHHHHHH
the Unicode (ISO/IEC 10646) character whose value is
the hexadecimal value
HHHHHHHH (one to eight hex digits)
\cx a control-x character

The expanded result is single-quoted, as if the dollar sign had
not been present.

A double-quoted string preceded by a dollar sign ($"string") will
cause the string to be translated according to the current locale. If
the current locale is C or POSIX, the dollar sign is ignored. If the
string is translated and replaced, the replacement is double-quoted.
--
Bye, Lem
Ceterum censeo ISLAM esse delendum
_________________________________________________________________
Non sprecare i cicli idle della tua CPU, né quelli della tua GPU.
http://www.worldcommunitygrid.org/index.jsp
http://www.rnaworld.de/rnaworld/ http://home.edges-grid.eu/home/
http://www.gpugrid.net/

Yoda

unread,
May 19, 2013, 5:13:51 PM5/19/13
to
Addi' 19 mag 2013, Lem Novantotto scrive:
> Yoda ha scritto:

>> Se do il "comando":
>> $: à bash mi dice:
>> -bash: $'\303\240': command not found sapete mica in che codice sono
[..........................]

> Dal man bash:
> Words of the form $'string' are treated specially. The word expands to
[..............]

OK e grazie, scioccamente non ho pensato di guardare man bash.

--
Tanti saluti

0 new messages