タグ

関連タグで絞り込む (1)

タグの絞り込みを解除

aliasに関するcknbstrのブックマーク (1)

  • How to escape single quotes within single quoted strings

    Let's say, you have a Bash alias like: alias rxvt='urxvt' which works fine. However: alias rxvt='urxvt -fg '#111111' -bg '#111111'' won't work, and neither will: alias rxvt='urxvt -fg \'#111111\' -bg \'#111111\'' So how do you end up matching up opening and closing quotes inside a string once you have escaped quotes? alias rxvt='urxvt -fg'\''#111111'\'' -bg '\''#111111'\'' seems ungainly although

    How to escape single quotes within single quoted strings
    cknbstr
    cknbstr 2012/10/19
    aliasの中のシングルクォートのエスケープは '#111111' => '"'"'#111111'"'"' 一旦区切って"'"でシングルクォート出力してつなげる
  • 1