![]() In your particular situation, you need to leave the tilde and the following slash unquoted while quoting the space in the directory name. ![]() (e.g.) cd foo\ bar (see more quoting example below). If you only wanted to send a single foo bar argument, then you need to quote the space: ![]() A command line like cd foo bar means to run cd with two arguments: foo and bar. The cd command typically requires exactly one argument (the destination directory). In addition, the following slash must also not be quoted.Īt the same time, bash parses command lines into “words” based on non-quoted whitespace. The core issue here is how the shell ( bash) does quoting and how that affects tilde expansion and splitting into “words” (arguments for the program being run).īash only treats the leading tilde specially if it is not quoted.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |