zsh-workers
 help / color / mirror / code / Atom feed
* Bug report: `> filename` doesn't exit
@ 2016-04-30 20:35 Moore, Brandon A.
  2016-04-30 20:42 ` Moore, Brandon A.
  2016-04-30 20:53 ` Nikolay Aleksandrovich Pavlov (ZyX)
  0 siblings, 2 replies; 5+ messages in thread
From: Moore, Brandon A. @ 2016-04-30 20:35 UTC (permalink / raw)
  To: zsh-workers

[-- Attachment #1: Type: text/plain, Size: 861 bytes --]

I am uncertain if the mailling list is the correct spot for a bug report. Feel free to notify me if it is not, but note that I am not on the mailing list.


Bug description:

A user noted on 'oh-my-zsh's Github that the shorthand `> filename` will create a file by the given filename (or empty said file if it already exists) as it does in most shells, but it does not exit. This leads to the user needing to terminate said command with c-C or c-D. This is atypical  compared to other shells that will execute this command and go to the next line.


Reproducing the bug:

run `$ > file`


p.s. please note that I personally do not use or suggest using this as a shortcut for the touch command, and am simply passing on this bug on behalf of the user who reported it.


Sincerely,

Brandon Moore


President

OpenSource Club

2016-2017

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Bug report: `> filename` doesn't exit
  2016-04-30 20:35 Bug report: `> filename` doesn't exit Moore, Brandon A.
@ 2016-04-30 20:42 ` Moore, Brandon A.
  2016-04-30 20:53 ` Nikolay Aleksandrovich Pavlov (ZyX)
  1 sibling, 0 replies; 5+ messages in thread
From: Moore, Brandon A. @ 2016-04-30 20:42 UTC (permalink / raw)
  To: zsh-workers

[-- Attachment #1: Type: text/plain, Size: 1364 bytes --]

As a quick addendum to the bug report, the link to the issue on Github is here: https://github.com/robbyrussell/oh-my-zsh/issues/5046. After sending my original email I investigated a bit more and noted that this behaviour may be a feature and not a bug.


Brandon Moore


President

OpenSource Club

2016-2017

________________________________
From: Moore, Brandon A.
Sent: Saturday, April 30, 2016 4:35:17 PM
To: zsh-workers@zsh.org
Subject: Bug report: `> filename` doesn't exit


I am uncertain if the mailling list is the correct spot for a bug report. Feel free to notify me if it is not, but note that I am not on the mailing list.


Bug description:

A user noted on 'oh-my-zsh's Github that the shorthand `> filename` will create a file by the given filename (or empty said file if it already exists) as it does in most shells, but it does not exit. This leads to the user needing to terminate said command with c-C or c-D. This is atypical  compared to other shells that will execute this command and go to the next line.


Reproducing the bug:

run `$ > file`


p.s. please note that I personally do not use or suggest using this as a shortcut for the touch command, and am simply passing on this bug on behalf of the user who reported it.


Sincerely,

Brandon Moore


President

OpenSource Club

2016-2017

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Bug report: `> filename` doesn't exit
  2016-04-30 20:35 Bug report: `> filename` doesn't exit Moore, Brandon A.
  2016-04-30 20:42 ` Moore, Brandon A.
@ 2016-04-30 20:53 ` Nikolay Aleksandrovich Pavlov (ZyX)
  2016-04-30 20:54   ` Moore, Brandon A.
  1 sibling, 1 reply; 5+ messages in thread
From: Nikolay Aleksandrovich Pavlov (ZyX) @ 2016-04-30 20:53 UTC (permalink / raw)
  To: Moore, Brandon A., zsh-workers

30.04.2016, 23:50, "Moore, Brandon A." <moore.3071@buckeyemail.osu.edu>:
> I am uncertain if the mailling list is the correct spot for a bug report. Feel free to notify me if it is not, but note that I am not on the mailing list.
>
> Bug description:
>
> A user noted on 'oh-my-zsh's Github that the shorthand `> filename` will create a file by the given filename (or empty said file if it already exists) as it does in most shells, but it does not exit. This leads to the user needing to terminate said command with c-C or c-D. This is atypical compared to other shells that will execute this command and go to the next line.
>
> Reproducing the bug:
>
> run `$ > file`
>
> p.s. please note that I personally do not use or suggest using this as a shortcut for the touch command, and am simply passing on this bug on behalf of the user who reported it.
>
> Sincerely,
>
> Brandon Moore
>
> President
>
> OpenSource Club
>
> 2016-2017

Unable to reproduce. Running `$ > file` creates `file` and fails with “zsh: command not found: $”. Zsh version 5.2.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Bug report: `> filename` doesn't exit
  2016-04-30 20:53 ` Nikolay Aleksandrovich Pavlov (ZyX)
@ 2016-04-30 20:54   ` Moore, Brandon A.
  2016-04-30 21:00     ` Nikolay Aleksandrovich Pavlov (ZyX)
  0 siblings, 1 reply; 5+ messages in thread
From: Moore, Brandon A. @ 2016-04-30 20:54 UTC (permalink / raw)
  To: Nikolay Aleksandrovich Pavlov (ZyX), zsh-workers

my apologies, I'm used to prepending $ to indicate the user as I usually run bash. The command is simply `> file`

Brandon Moore

President
OpenSource Club
2016-2017

________________________________________
From: Nikolay Aleksandrovich Pavlov (ZyX) <kp-pav@yandex.ru>
Sent: Saturday, April 30, 2016 4:53:09 PM
To: Moore, Brandon A.; zsh-workers@zsh.org
Subject: Re: Bug report: `> filename` doesn't exit

30.04.2016, 23:50, "Moore, Brandon A." <moore.3071@buckeyemail.osu.edu>:
> I am uncertain if the mailling list is the correct spot for a bug report. Feel free to notify me if it is not, but note that I am not on the mailing list.
>
> Bug description:
>
> A user noted on 'oh-my-zsh's Github that the shorthand `> filename` will create a file by the given filename (or empty said file if it already exists) as it does in most shells, but it does not exit. This leads to the user needing to terminate said command with c-C or c-D. This is atypical compared to other shells that will execute this command and go to the next line.
>
> Reproducing the bug:
>
> run `$ > file`
>
> p.s. please note that I personally do not use or suggest using this as a shortcut for the touch command, and am simply passing on this bug on behalf of the user who reported it.
>
> Sincerely,
>
> Brandon Moore
>
> President
>
> OpenSource Club
>
> 2016-2017

Unable to reproduce. Running `$ > file` creates `file` and fails with “zsh: command not found: $”. Zsh version 5.2.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Bug report: `> filename` doesn't exit
  2016-04-30 20:54   ` Moore, Brandon A.
@ 2016-04-30 21:00     ` Nikolay Aleksandrovich Pavlov (ZyX)
  0 siblings, 0 replies; 5+ messages in thread
From: Nikolay Aleksandrovich Pavlov (ZyX) @ 2016-04-30 21:00 UTC (permalink / raw)
  To: Moore, Brandon A., zsh-workers

30.04.2016, 23:54, "Moore, Brandon A." <moore.3071@buckeyemail.osu.edu>:
> my apologies, I'm used to prepending $ to indicate the user as I usually run bash. The command is simply `> file`

That would be OK if you placed `$ > file` on its own line. In-line usage is very confusing.

What you see is not a bug, it is a feature. Configurable feature:

    $ zsh -f
    % emulate bash
    % > file

does exactly what you request. See `man zshmisc`, section REDIRECTIONS WITH NO COMMAND.

>
> Brandon Moore
>
> President
> OpenSource Club
> 2016-2017
>
> ________________________________________
> From: Nikolay Aleksandrovich Pavlov (ZyX) <kp-pav@yandex.ru>
> Sent: Saturday, April 30, 2016 4:53:09 PM
> To: Moore, Brandon A.; zsh-workers@zsh.org
> Subject: Re: Bug report: `> filename` doesn't exit
>
> 30.04.2016, 23:50, "Moore, Brandon A." <moore.3071@buckeyemail.osu.edu>:
>>  I am uncertain if the mailling list is the correct spot for a bug report. Feel free to notify me if it is not, but note that I am not on the mailing list.
>>
>>  Bug description:
>>
>>  A user noted on 'oh-my-zsh's Github that the shorthand `> filename` will create a file by the given filename (or empty said file if it already exists) as it does in most shells, but it does not exit. This leads to the user needing to terminate said command with c-C or c-D. This is atypical compared to other shells that will execute this command and go to the next line.
>>
>>  Reproducing the bug:
>>
>>  run `$ > file`
>>
>>  p.s. please note that I personally do not use or suggest using this as a shortcut for the touch command, and am simply passing on this bug on behalf of the user who reported it.
>>
>>  Sincerely,
>>
>>  Brandon Moore
>>
>>  President
>>
>>  OpenSource Club
>>
>>  2016-2017
>
> Unable to reproduce. Running `$ > file` creates `file` and fails with “zsh: command not found: $”. Zsh version 5.2.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-04-30 21:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-30 20:35 Bug report: `> filename` doesn't exit Moore, Brandon A.
2016-04-30 20:42 ` Moore, Brandon A.
2016-04-30 20:53 ` Nikolay Aleksandrovich Pavlov (ZyX)
2016-04-30 20:54   ` Moore, Brandon A.
2016-04-30 21:00     ` Nikolay Aleksandrovich Pavlov (ZyX)

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).