[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[debian-users:50074] Re: bashでの制御コードの出力について
- From: honya <honyax@xxxxxxxxx>
- Subject: [debian-users:50074] Re: bashでの制御コードの出力について
- Date: Fri, 25 Jan 2008 14:55:44 +0900
- Content-disposition: inline
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=KgYqS4yJKRAyLhN3cMwRugqqj98Dsmmi9pU+YPO2ngI=; b=Di5jCpOX9tvN8QXbSBEoJsl0r5Jca3/2m5mG8hL8xQUDGfuWXzU0ek+NqcYfJYXV6RuJ4RUNaTJbE3yaQTGAIdncdLvYI84cbsaI2DtNG0lKJwp/753ap3k3Fnm3rfgg9tfYK4lZhDW7r3cMMf3IO/MFtZAXV11OClK8k/TiBIc=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=MXvG/sZjBORephDyZszr4SNxbTlHrvKQHFPfsc8AzuUH/Ip/fW4BDH0f61J+1oI2z6c/2AtcCExMy4ghqSjJpmcFdedQIzLuLwVUdZRzrDkVqNnQBhcMOXwOBcLzc0nFKMs7Ik+jT4KqIG8NC0IlXJH+78vkbUFz/0rdHkaJ+vs=
- List-help: <mailto:debian-users-ctl@debian.or.jp?body=help>
- List-id: debian-users.debian.or.jp
- List-owner: <mailto:debian-users-admin@debian.or.jp>
- List-post: <mailto:debian-users@debian.or.jp>
- List-software: fml [fml 4.0.3 release (20011202/4.0.3)]
- List-unsubscribe: <mailto:debian-users-ctl@debian.or.jp?body=unsubscribe>
- X-ml-info: If you have a question, send e-mail with the body "help" (without quotes) to the address debian-users-ctl@debian.or.jp; help=<mailto:debian-users-ctl@debian.or.jp?body=help>
- X-ml-name: debian-users
- X-mlserver: fml [fml 4.0.3 release (20011202/4.0.3)]; post only (only members can post)
- X-spam-checker-version: SpamAssassin 3.1.7-deb (2006-10-05) on osdn.debian.or.jp
- X-spam-level:
- X-spam-status: No, score=-0.9 required=10.0 tests=KI,SUBJECT_ENCODED_TWICE autolearn=disabled version=3.1.7-deb
- References: <000d01c85efb$dcda37b0$020ba8c0@node1>
- Message-id: <d15a0b7a0801242155w778ae017wad505fe613f96a71@xxxxxxxxxxxxxx>
- X-mail-count: 50074
うえはらと申します。
echo 自身の改行 + "\n" の改行で2回改行されるわけですね。
bashのコーディング中に意図しない動作をした場合は、
以下のように1行目に"-x"を加えて実行すると
デバッグ文が表示されるので、かなり楽に解析できますよ。
#!/bin/bash
↓
#!/bin/bash -x
お勉強、がんばってください :-)