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

[FDclone-users:00025] escaping a !



 カレントディレクトリに「ssh!」というファイルがあるとして、
以下のようになります。

$ ls -l ssh[tab]
$ ls -l "ssh!" [enter]
!": Event not found.

 "" 内の ! がメタ文字として解釈されています。ファイル名補完の
結果が不適切。

$ ls -l "ssh\!"
ls: ssh\!: No such file or directory

\ ではエスケープできないようです。

$ ls -l 'ssh!'
-rwxr-xr-x  1 knu  wheel  198 Aug 12 21:07 ssh!

'' で括るとうまく行くようです。

-- 
                     /
                    /__  __            Akinori.org / MUSHA.org
                   / )  )  ) )  /     FreeBSD.org / Ruby-lang.org
Akinori MUSHA aka / (_ /  ( (__(  @ iDaemons.org / and.or.jp

"When I leave I don't know what I'm hoping to find
              When I leave I don't know what I'm leaving behind.."