Portable shell code between Cygwin and Linux

Sven Köhler sven.koehler@gmail.com
Wed Aug 10 12:03:00 GMT 2011


Am 08.08.2011 15:40, schrieb Eric Blake:
> On 08/07/2011 07:20 PM, Sven Köhler wrote:
>> pathconvert() {
>> echo "1ドル"
>> }
>>>>> (There's one issue here: I would like to write echo -- "1ドル", but echo
>> doesn't understand --. Bummer.)
>> echo _cannot_ be used to portably echo arbitrary strings. For that, you
> need printf:
>> pathconvert() {
> printf '%s\n' "1ドル"
> }

Thanks! I learned something.
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple


More information about the Cygwin mailing list

AltStyle によって変換されたページ (->オリジナル) /