Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It's possible your shell has some kind of regular expression magic enabled that is eating the '?' and the '=' characters:

  $ echo youtube-dl https://www.youtube.com/watch\?v\=wbKJt1NQtZE
  youtube-dl https://www.youtube.com/watch?v=wbKJt1NQtZE
  
  $ echo youtube-dl https://www.youtube.com/watch?v=wbKJt1NQtZE
  zsh: no matches found: https://www.youtube.com/watch?v=wbKJt1NQtZE


Interesting! It seems that my `echo` is eating any substrings involving `?`.

    $ bash --version
    GNU bash, version 4.3.42(1)-release (x86_64-apple-darwin13.4.0)
    Copyright (C) 2013 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

    This is free software; you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.

    $ echo a ? = =?
    a =




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: