bug-bash
[Top][All Lists]
Advanced

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

Re: Bug report command "cd"


From: Eric Blake
Subject: Re: Bug report command "cd"
Date: Wed, 03 Jul 2013 10:07:17 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130625 Thunderbird/17.0.7

On 07/03/2013 03:52 AM, Stephan van Ingen wrote:
> Hello,
> 
> I hope this is the correct way to report a bug (as explained
> here<http://www.gnu.org/software/bash/manual/html_node/Reporting-Bugs.html>

Yes. However, what you are reporting is not a bug, but a usage issue on
your part.

> stephanbosal@in-laptop3:~/Downloads/Win8$ *cd --SMSBOOT-sources-/*
> bash: cd: --: invalid option

You need to use one of these two constructs, to explicitly tell cd that
your directory name starts with '-' rather than being an option that cd
tries to interpret:

cd -- --SMSBOOT-sources-/*
cd ./--SMSBOOT-sources-/*

This is true for most unix-y commands, not just cd.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]